all repos — nixfiles @ fbe3ce10ac5e5ae59cbb0928ac4c3a774d35eb8b

System and user configuration, managed by nix and home-manager

emacs: enable eglot in nix-ts-mode buffers
Alan Pearce alan@alanpearce.eu
Tue, 30 Apr 2024 08:58:42 +0200
commit

fbe3ce10ac5e5ae59cbb0928ac4c3a774d35eb8b

parent

6ee4be8ff88a796485eac5e448af18d3c0f2a796

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -1048,6 +1048,8 @@ nix-mode-hook             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 ()