aboutsummaryrefslogtreecommitdiff
path: root/config/emacs.el
diff options
context:
space:
mode:
Diffstat (limited to 'config/emacs.el')
-rw-r--r--config/emacs.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/emacs.el b/config/emacs.el
index d1a4b50..4df7fc8 100644
--- a/config/emacs.el
+++ b/config/emacs.el
@@ -256,7 +256,10 @@ Otherwise, just insert the typed character."
(use-package eglot
:config
(add-hook 'prog-mode-hook 'eglot-ensure)
- (add-hook 'prog-mode-hook 'lsp))
+ (add-to-list 'eglot-server-programs '(nix-mode . ("nil")))
+ (add-hook 'prog-mode-hook 'lsp)
+ :hook
+ (nix-mode . eglot-ensure))
(use-package projectile
:init