Add eglot-ensure hook to nix-mode only

This commit is contained in:
Evie Litherland-Smith 2024-05-19 11:02:51 +01:00
parent 5474f3360c
commit 47bfe14af0

View file

@ -875,7 +875,8 @@
:bind ( :map prog-mode-map
("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))))
:hook ((nix-mode . eglot-ensure)
(eglot-managed-mode . (lambda () (add-hook 'flymake-diagnostic-functions 'eglot-flymake-backend nil t))))
:custom
(eglot-extend-to-xref t)
(eglot-autoshutdown t)