Prefer basedpyright over pyright if installed

This commit is contained in:
Adam Goldsmith 2024-12-23 10:14:53 -05:00
parent 40f8a94954
commit 4289e9b8b6

View File

@ -623,6 +623,11 @@
(let ((default-directory (lsp-workspace-root)))
(call-interactively 'compile)))
(use-package lsp-pyright :demand :if (package-installed-p 'lsp-pyright)
:config
(when (executable-find "basedpyright")
(setq lsp-pyright-langserver-command "basedpyright")))
(use-package lsp-ui :ensure
:bind (:map lsp-ui-mode-map
([remap xref-find-definitions] . lsp-ui-peek-find-definitions)