Add eglot-ensure hook to nix-mode only
This commit is contained in:
parent
5474f3360c
commit
47bfe14af0
3
init.el
3
init.el
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue