about summary refs log tree commit diff
path: root/modules/workstation/emacs/init.el
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-03-23 14:50:07 +0000
committerAlyssa Ross <hi@alyssa.is>2021-03-23 14:55:10 +0000
commit74aecec660b0c263b8ef44f8cbe35f75a00f73d5 (patch)
tree8ce3fc34ed28746ecf70c781d71e2aeb3abf4c47 /modules/workstation/emacs/init.el
parentffd1fc306a42d9a958678e144e9a3001fd27609d (diff)
downloadnixlib-74aecec660b0c263b8ef44f8cbe35f75a00f73d5.tar
nixlib-74aecec660b0c263b8ef44f8cbe35f75a00f73d5.tar.gz
nixlib-74aecec660b0c263b8ef44f8cbe35f75a00f73d5.tar.bz2
nixlib-74aecec660b0c263b8ef44f8cbe35f75a00f73d5.tar.lz
nixlib-74aecec660b0c263b8ef44f8cbe35f75a00f73d5.tar.xz
nixlib-74aecec660b0c263b8ef44f8cbe35f75a00f73d5.tar.zst
nixlib-74aecec660b0c263b8ef44f8cbe35f75a00f73d5.zip
modules/emacs: configure eglot to use rnix-lsp
Diffstat (limited to 'modules/workstation/emacs/init.el')
-rw-r--r--modules/workstation/emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/workstation/emacs/init.el b/modules/workstation/emacs/init.el
index 9c24ecfcac68..ecc84310969e 100644
--- a/modules/workstation/emacs/init.el
+++ b/modules/workstation/emacs/init.el
@@ -90,8 +90,9 @@
 ;;; Eglot ;;;
 (with-eval-after-load 'eglot
   ;; Override default LSPs for languages.
-  (add-to-list 'eglot-server-programs '(rust-mode "rust-analyzer"))
   (add-to-list 'eglot-server-programs '((c++-mode c-mode) "clangd"))
+  (add-to-list 'eglot-server-programs '(rust-mode "rust-analyzer"))
+  (add-to-list 'eglot-server-programs '(nix-mode "rnix-lsp"))
 
   ;; Underline all occurrences of the symbol at point in the current
   ;; buffer (default is to bold instead).