fix(python): invalid command for basedpyright

`lsp-pyright-langserver-command` does not recognize a full path, only
"pyright" or "basedpyright".

Fix: #8160
Close: #8161
This commit is contained in:
Leo Alekseyev
2024-11-19 16:50:10 -05:00
committed by Henrik Lissner
parent 7533707e00
commit a211332796

View File

@ -354,5 +354,5 @@
:when (modulep! :tools lsp -eglot)
:defer t
:init
(when-let ((exe (executable-find "basedpyright")))
(setq lsp-pyright-langserver-command exe)))
(when (executable-find "basedpyright")
(setq lsp-pyright-langserver-command "basedpyright")))