From 213555ac6cd409b7a254a5f5820d49f2bf8c7532 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 21 May 2024 19:33:49 +0200 Subject: emacs: quieten eglot properly --- user/emacs/init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user') diff --git a/user/emacs/init.el b/user/emacs/init.el index 6652d57c..6ffe393d 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -1096,7 +1096,7 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve (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)) -- cgit 1.4.1