From a08b385a890c2e6625751b5cf0b97d73400b1169 Mon Sep 17 00:00:00 2001 From: Marc Date: Fri, 2 May 2025 15:27:30 +0200 Subject: [PATCH] added lsp-pyright config in pet --- config.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index 61ab7dd..dafacf4 100644 --- a/config.org +++ b/config.org @@ -2018,7 +2018,9 @@ It uses pyvenv to activate the venv. Somehow it doesn't do it on its own. Maybe (add-hook 'python-mode-hook (lambda () (setq-local python-shell-interpreter (pet-executable-find "python") - python-shell-virtualenv-root (pet-virtualenv-root)) + python-shell-virtualenv-root (pet-virtualenv-root) + lsp-pyright-python-executable-cmd python-shell-interpreter + lsp-pyright-venv-path python-shell-virtualenv-root) (flymake-mode) (lsp) (setq-local dap-python-executable python-shell-interpreter))))