summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2024-05-21 19:33:49 +0200
committerAlan Pearce2024-05-21 19:33:49 +0200
commit213555ac6cd409b7a254a5f5820d49f2bf8c7532 (patch)
tree8cdada4aab7fcf5ee2ea158f7ee1fb40c3873095 /user/emacs
parent07f260339af3c985e0a2998ac37d48e91f48cc97 (diff)
downloadnixfiles-213555ac6cd409b7a254a5f5820d49f2bf8c7532.tar.lz
nixfiles-213555ac6cd409b7a254a5f5820d49f2bf8c7532.tar.zst
nixfiles-213555ac6cd409b7a254a5f5820d49f2bf8c7532.zip
emacs: quieten eglot properly
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el2
1 files changed, 1 insertions, 1 deletions
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))