reddit / emacs

eglot show code actions and error in modeline

bruchieOP · 2022-10-06 10:24
I tried eglot and so far it's been a good experience compared to lsp, with pretty minimal setup, or at least for my need. the only thing i miss is being able to see the code actions available in the modeline and the project error list from flymake (not just the current buffer) in the modeline. It would be nice if there was a way to go to the previous/next error in project. anyone would know how to do that? flymake-show-project-diagnostics with eglot is so much better than lsp-treemacs tho, i love it just for that...
doolio_ · 2022-10-06 10:59
\> It would be nice if there was a way to go to the previous/next error in project. I use consult and [consult-flymake](https://github.com/minad/consult/blob/main/consult-flymake.el#L87) shows errors project wide. Not sure if all project errors are shown in the Flymake modeline lighter though.
bruchieOP · 2022-10-06 12:29
I use flymake-show-diagnostics which would works the same, but rather have something in the modeline..
coolstuff39 · 2022-10-06 14:40
> much better than lsp-treemacs You may wanna try lsp-consult when using lsp-mode
jangid · 2022-10-06 15:10
You can bind some keys to `flymake-goto-next-error` and `flymake-goto-prev-error`. I have bound M-n and M-p.
bruchieOP · 2022-10-07 09:00
thanks, but i don't believe they are project scoped, they behave only on the current buffer
bruchieOP · 2022-10-07 09:01
maybe i will, not giving up on eglot tho! hopefully by the time of emacs29 everything will be built-in!
jangid · 2022-10-07 09:26
Yes