Add LSP config for basedpyright

This commit is contained in:
2025-06-25 22:31:12 -07:00
parent 40bfd1cdf6
commit cd54ba5eb9

View File

@@ -823,6 +823,13 @@
(setq major-mode-remap-alist
'((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"))