From 47bfe14af08f793c889413bc71b3847ae134de8c Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sun, 19 May 2024 11:02:51 +0100 Subject: [PATCH] Add eglot-ensure hook to nix-mode only --- init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index f02bb9d..3bd32c8 100644 --- a/init.el +++ b/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)