all repos — nixfiles @ 213555ac6cd409b7a254a5f5820d49f2bf8c7532

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

emacs: quieten eglot properly

Alan Pearce
commit

213555ac6cd409b7a254a5f5820d49f2bf8c7532

parent

07f260339af3c985e0a2998ac37d48e91f48cc97

1 file changed, 1 insertion(+), 1 deletion(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -1096,7 +1096,7 @@ :config (progn
(when (assoc 'nix-mode eglot-server-programs) (setf (car (assoc 'nix-mode eglot-server-programs)) '(nix-mode nix-ts-mode))) (nconc eglot-server-programs '((toml-ts-mode "taplo" "lsp" "stdio"))) - (advice-add 'eglot--message :before-while (lambda (formatstring &rest rest) + (advice-add 'eglot--message :before-until (lambda (formatstring &rest rest) (s-starts-with-p "Connected!" formatstring))) (defun my/setup-eglot-eldoc () (push 'flymake-eldoc-function eldoc-documentation-functions))