From a211332796de25225784c71908c5e97be22dfa15 Mon Sep 17 00:00:00 2001 From: Leo Alekseyev Date: Tue, 19 Nov 2024 16:50:10 -0500 Subject: [PATCH] fix(python): invalid command for basedpyright `lsp-pyright-langserver-command` does not recognize a full path, only "pyright" or "basedpyright". Fix: #8160 Close: #8161 --- modules/lang/python/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lang/python/config.el b/modules/lang/python/config.el index 9094e758e..cb7dca052 100644 --- a/modules/lang/python/config.el +++ b/modules/lang/python/config.el @@ -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")))