diff options
author | Alan Pearce | 2024-04-30 08:58:42 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-30 09:48:09 +0200 |
commit | fbe3ce10ac5e5ae59cbb0928ac4c3a774d35eb8b (patch) | |
tree | 477fa513c831788aa762f1d03fa1354e4b174a74 /user/emacs | |
parent | 6ee4be8ff88a796485eac5e448af18d3c0f2a796 (diff) | |
download | nixfiles-fbe3ce10ac5e5ae59cbb0928ac4c3a774d35eb8b.tar.lz nixfiles-fbe3ce10ac5e5ae59cbb0928ac4c3a774d35eb8b.tar.zst nixfiles-fbe3ce10ac5e5ae59cbb0928ac4c3a774d35eb8b.zip |
emacs: enable eglot in nix-ts-mode buffers
Diffstat (limited to 'user/emacs')
-rw-r--r-- | user/emacs/init.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index 08add74f..7ca9cd2c 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -1048,6 +1048,8 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve haskell-mode-hook) #'eglot-ensure) :config (progn + (when (assoc 'nix-mode eglot-server-programs) + (setf (car (assoc 'nix-mode eglot-server-programs)) '(nix-mode nix-ts-mode))) (advice-add 'eglot--message :before-while (lambda (formatstring &rest rest) (s-starts-with-p "Connected!" formatstring))) (defun my/setup-eglot-eldoc () |