Only activate eglot automtically for nix files
This commit is contained in:
parent
b83631bfa4
commit
7b4d1f8384
|
@ -1325,11 +1325,7 @@ Configure email with iCalendar event support, to integrate with
|
|||
("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 (executable-find "nixd" t) (eglot-ensure))))
|
||||
(python-base-mode . (lambda () (if (executable-find "pylsp" t) (eglot-ensure))))
|
||||
(lua-mode . (lambda () (if (executable-find "lua-language-server" t) (eglot-ensure))))
|
||||
((rust-ts-mode rust-mode) . (lambda () (if (executable-find "rust-analyzer" t) (eglot-ensure))))
|
||||
((js-base-mode typescript-ts-base-mode) . (lambda () (if (executable-find "typescript-language-server" t) (eglot-ensure)))))
|
||||
(nix-mode . (lambda () (if (executable-find "nixd" t) (eglot-ensure)))))
|
||||
:custom
|
||||
(eglot-menu-string "lsp")
|
||||
(eglot-send-changes-idle-time 0.5)
|
||||
|
|
Loading…
Reference in a new issue