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)
)
;; (use-package lsp-pyright
;; :ensure t
;; :hook (python-mode . (lambda ()
;; (require 'lsp-pyright)
;; (lsp)))) ; or lsp-deferred
(use-package lsp-jedi
(use-package lsp-pyright
:ensure t
:config
(with-eval-after-load "lsp-mode"
(add-to-list 'lsp-disabled-clients 'pyls)
(add-to-list 'lsp-enabled-clients 'jedi)))
:hook (python-mode . (lambda ()
(require 'lsp-pyright)
(lsp)))) ; or lsp-deferred
(use-package scala-mode
:ensure t