Switch between documentation and diagnostic on a single line #898
-
I’ve recently switched from lsp-mode to Eglot. I think I’ve got things working pretty cool, but there’s one issue I can’t solve. I can’t find how to see different diagnostics/documentations on a single like. Take this for example:
If there’s a diagnostic message for this line, and I hove over They’re probably provided by different packages ( So I suppose the question is, how can I view the current (full) message of I’m sure this is Eglot specific. I was using Doom before switching to my own config, and I think it was using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I think you can ask Try this 100% untested snippet in your (add-hook 'eglot-managed-mode-hook (lambda ()
(push #'flymake-eldoc-function eldoc-documentation-functions)
(setq eldoc-documentation-strategy #'eldoc-documentation-compose) ;optional
)) Personally, to solve your problem I bind |
Beta Was this translation helpful? Give feedback.
I think you can ask
eldoc
to show flymake diagnostics as a documentation item when within Eglot, and you can optionally also tell Eldoc to display all its items at once. By default, Eglot only shows the signature and hover info items. And by default it will show only one, the most important of the two at once.Try this 100% untested snippet in your
.emacs
.Personally, to solve your problem I bind
M-p
andM-n
toflymake-goto-prev-error
andflymake-goto-next-error
. When they land me on an error, they te…