aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorAlex <alex.corcoles@veecle.io>2026-05-29 15:19:37 +0200
committeralex <alex@pdp7.net>2026-05-29 13:21:11 +0000
commit926ec2324bbe62f7978e698188d1f5b739803d7c (patch)
tree0b5e63aa09cd9e5f290d0b09e0ae49379a2cb3c9 /emacs
parent830a91e8aa9263c17c0c69588a75d4c976d8cbf1 (diff)
Add nil language server to nil modemaster
Diffstat (limited to 'emacs')
-rw-r--r--emacs/emacs.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs/emacs.el b/emacs/emacs.el
index b7ac6bdf..87b5e5ae 100644
--- a/emacs/emacs.el
+++ b/emacs/emacs.el
@@ -164,6 +164,14 @@
(use-package nix-mode
:mode "\\.nix\\'")
+;; nil can be a wrapper like:
+;; exec nix-user-chroot ~/.nix bash -l -c "nix-shell -p nil --run \"nil\""
+(with-eval-after-load 'eglot
+ (add-to-list 'eglot-server-programs
+ '(nix-mode . ("nil"))))
+
+(add-hook 'nix-mode-hook 'eglot-ensure)
+
;; the following is a bit fiddly, eglot requires some extra love to have extra flymake providers
(use-package flymake-vale
:vc (:url "https://github.com/tpeacock19/flymake-vale.git"