emacs: enable eglot in nix-ts-mode buffers
Alan Pearce alan@alanpearce.eu
Tue, 30 Apr 2024 08:58:42 +0200
1 files changed, 2 insertions(+), 0 deletions(-)
jump to
M user/emacs/init.el → user/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 ()