diff options
| author | Thomas Schneider <qsx@chaotikum.eu> | 2026-07-27 19:44:01 +0200 |
|---|---|---|
| committer | Thomas Schneider <qsx@chaotikum.eu> | 2026-07-27 20:02:51 +0200 |
| commit | 1508d027c421f12dca8b65e1cdabda352a8d6c0b (patch) | |
| tree | 569b6e361b337cf389ee2984dd5fe49c47c7cff1 | |
| parent | 31b147e46a7e30ab6918170e5c9de4bee64d33ac (diff) | |
Emacs: pet: Find `pylsp` executable via pet
| -rw-r--r-- | dot.emacs.d/init.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el index afb2839..5671701 100644 --- a/dot.emacs.d/init.el +++ b/dot.emacs.d/init.el @@ -113,7 +113,11 @@ :hook ((python-mode python-ts-mode) . lsp)) (use-package pet :init - (add-hook 'python-base-mode-hook 'pet-mode -10)) + (add-hook 'python-base-mode-hook 'pet-mode -10) + (add-hook + 'python-base-mode-hook + (defun qsx-python-pet-hook () + (setq-local lsp-pylsp-server-command (list (pet-executable-find "pylsp")))))) (use-package highlight-indentation :hook python-base-mode) |
