Update eglot hooks since I switched nix LSP

This commit is contained in:
Evie Litherland-Smith 2024-07-31 06:36:01 +01:00
parent 2bbcd853c2
commit 1f7b08c001

View file

@ -867,11 +867,9 @@
("C-c c a" . eglot-code-actions)
("C-c c r" . eglot-rename))
:hook ((eglot-managed-mode . (lambda () (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t)))
(nix-mode . (lambda () (if (and (project-current nil) (executable-find "nil" t))
(nix-mode . (lambda () (if (and (project-current nil) (executable-find "nixd" t))
(eglot-ensure))))
(python-base-mode . (lambda () (if (and (project-current nil)
(or (executable-find "pyright" t)
(executable-find "pylsp" t)))
(python-base-mode . (lambda () (if (and (project-current nil) (executable-find "pylsp" t))
(eglot-ensure))))
(lua-mode . (lambda () (if (and (project-current nil) (executable-find "lua-language-server" t))
(eglot-ensure))))