Browse Source

added lsp-pyright config in pet

master
Marc 2 weeks ago
parent
commit
a08b385a89
1 changed files with 3 additions and 1 deletions
  1. 4
      config.org

4
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 (add-hook 'python-mode-hook
(lambda () (lambda ()
(setq-local python-shell-interpreter (pet-executable-find "python") (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) (flymake-mode)
(lsp) (lsp)
(setq-local dap-python-executable python-shell-interpreter)))) (setq-local dap-python-executable python-shell-interpreter))))

Loading…
Cancel
Save