From 4aadc47f21da7561e5b79d75323e5bd85236c554 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sun, 15 Sep 2024 15:13:33 +0800 Subject: [PATCH] fix: install pyright via npm --- lsp-pyright.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lsp-pyright.el b/lsp-pyright.el index a4cff44..0f6459e 100644 --- a/lsp-pyright.el +++ b/lsp-pyright.el @@ -223,7 +223,9 @@ Current LSP WORKSPACE should be passed in." ("python.venvPath" (lambda () (or lsp-pyright-venv-path ""))))) (lsp-dependency 'pyright - (backquote (:system ,(concat lsp-pyright-langserver-command "-langserver")))) + `(:system ,(concat lsp-pyright-langserver-command "-langserver")) + `(:npm :package ,lsp-pyright-langserver-command + :path ,(concat lsp-pyright-langserver-command "-langserver"))) (lsp-register-client (make-lsp-client