Prefer basedpyright
over pyright
if installed
This commit is contained in:
parent
40f8a94954
commit
4289e9b8b6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user