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")))