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)