Add LSP config for basedpyright
This commit is contained in:
@@ -823,6 +823,13 @@
|
|||||||
(setq major-mode-remap-alist
|
(setq major-mode-remap-alist
|
||||||
'((python-mode . python-ts-mode)))
|
'((python-mode . python-ts-mode)))
|
||||||
|
|
||||||
|
(use-package lsp-pyright
|
||||||
|
:ensure t
|
||||||
|
:custom (lsp-pyright-langserver-command "basedpyright")
|
||||||
|
:hook (python-ts-mode . (lambda ()
|
||||||
|
(require 'lsp-pyright)
|
||||||
|
(lsp))))
|
||||||
|
|
||||||
(setq lsp-pylsp-plugins-flake8-ignore '("D100" "D101" "D102"))
|
(setq lsp-pylsp-plugins-flake8-ignore '("D100" "D101" "D102"))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user