Switch python lsp to pyright

This commit is contained in:
Magic_RB 2020-09-24 08:52:49 +02:00
parent 2cbf3f591d
commit be5503b654

View file

@ -140,18 +140,11 @@ There are two things you can do about this warning:
(flycheck-add-mode 'javascript-eslint 'web-mode) (flycheck-add-mode 'javascript-eslint 'web-mode)
) )
;; (use-package lsp-pyright (use-package lsp-pyright
;; :ensure t
;; :hook (python-mode . (lambda ()
;; (require 'lsp-pyright)
;; (lsp)))) ; or lsp-deferred
(use-package lsp-jedi
:ensure t :ensure t
:config :hook (python-mode . (lambda ()
(with-eval-after-load "lsp-mode" (require 'lsp-pyright)
(add-to-list 'lsp-disabled-clients 'pyls) (lsp)))) ; or lsp-deferred
(add-to-list 'lsp-enabled-clients 'jedi)))
(use-package scala-mode (use-package scala-mode
:ensure t :ensure t