summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2023-12-06 22:31:58 +0100
committerAlan Pearce2023-12-06 22:31:58 +0100
commitaa29d2164a652aa53e048f6acaeacc2e13e41efe (patch)
tree37bbab311bb64aa375783d3fdbb05c37089842bb /user/emacs
parent825e49acad8a4c0f85169c9d9e47647c07e12a0f (diff)
downloadnixfiles-aa29d2164a652aa53e048f6acaeacc2e13e41efe.tar.lz
nixfiles-aa29d2164a652aa53e048f6acaeacc2e13e41efe.tar.zst
nixfiles-aa29d2164a652aa53e048f6acaeacc2e13e41efe.zip
Add support for developing in Nim
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 4db02a8a..acf96146 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -748,6 +748,13 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   :defer t)
 (add-to-list 'major-mode-remap-alist '(go-mode . go-ts-mode))
 
+;;;; nim
+(use-package nim-mode
+  :defer t
+  :config (progn
+            (add-to-list 'eglot-server-programs
+                         '(nim-mode "nimlsp"))))
+
 ;;;; rust
 (use-package rustic
   :mode (("\\.rs\\'" . rustic-mode))
@@ -1045,6 +1052,7 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
             css-ts-mode-hook
             go-ts-mode-hook
             lua-mode-hook
+            nim-mode-hook
             scss-mode-hook
             html-mode-hook
             nix-mode-hook