Update eglot hooks since I switched nix LSP
This commit is contained in:
parent
2bbcd853c2
commit
1f7b08c001
6
init.el
6
init.el
|
@ -867,11 +867,9 @@
|
||||||
("C-c c a" . eglot-code-actions)
|
("C-c c a" . eglot-code-actions)
|
||||||
("C-c c r" . eglot-rename))
|
("C-c c r" . eglot-rename))
|
||||||
:hook ((eglot-managed-mode . (lambda () (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t)))
|
: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))))
|
(eglot-ensure))))
|
||||||
(python-base-mode . (lambda () (if (and (project-current nil)
|
(python-base-mode . (lambda () (if (and (project-current nil) (executable-find "pylsp" t))
|
||||||
(or (executable-find "pyright" t)
|
|
||||||
(executable-find "pylsp" t)))
|
|
||||||
(eglot-ensure))))
|
(eglot-ensure))))
|
||||||
(lua-mode . (lambda () (if (and (project-current nil) (executable-find "lua-language-server" t))
|
(lua-mode . (lambda () (if (and (project-current nil) (executable-find "lua-language-server" t))
|
||||||
(eglot-ensure))))
|
(eglot-ensure))))
|
||||||
|
|
Loading…
Reference in a new issue