rougier / nano-modeline

GNU Emacs / N Λ N O Modeline
GNU General Public License v3.0
175 stars 31 forks source link

Support for lsp mode? #6

Closed librarianmage closed 1 year ago

librarianmage commented 3 years ago

Hi! Sorry for the bother but do you have any suggestions on configuring the modeline to work with lsp-mode? There are two main issues I see:

is there anything I can do to try to fix this on my end?

rougier commented 3 years ago

I'm not sure I understand. Can you show a screenshot of the problem?

librarianmage commented 3 years ago

Sure! Sorry for not being clearer :sweat_smile:

lsp-mode adds "breadcrumbs" at the top of the page that push the modeline slightly out of the window: image

Additionally, there are little buttons and things that the mode normally adds to the modeline for interaction with the lsp server. Do you have any recommendations on how to try to add those things back in? If not it doesn't look to be too big of an impediment from lsp-mode's intended workflow, but I am not super familiar with the package yet

rougier commented 3 years ago

Do you know if there's a way to disable such breadcrumbs ? Or a hook to modify them ?

librarianmage commented 3 years ago

I was able to disable them, which fixes the alignment issue ^_^

rougier commented 3 years ago

Maybe it's worth to disable them when modeline is on then. What is the command exactly?

librarianmage commented 2 years ago

The variable is lsp-headerline-breadcrumb-mode

rougier commented 2 years ago

Thanks. Maybe worth to have a hook before lsp to disable them. If you look into the code, you'll find that some modes have hook before activation. For the buttons, you can actually define a specific lsp mode that will include those buttons. I can try to help you on that.