-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mini.statusline: Create lsp string in a separate method #687
Comments
Thanks for the suggestion!
Oh, you are completely right! This somehow slipped past me when I implemented this. Right now, I don't particularly see much use in having separate |
There is not much use in having a separate It would mean however that I don't have to copy the I do think that there is a backward compatibility problem for users with a custom |
The diagnostic section was hidden behind a language server check, which hides linter results. Resolve echasnovski#687
Hello @echasnovski, I don't mind if this issue were to be closed. The current situation is fine, and I customized some more parts. Best regards! |
Let this be open for now. I do plan a 'mini.statusline' update some time soon-ish and this will be one thing to keep in mind. |
Details: - Depend only on if there are actually present diagnostic entries. This allows showing in not normal buffers and if there is no LSP server attached. Do not show ' -' if there is no diagnostics, as this will be **always** shown, which is not ergonomic. - Use "Diag" fallback icon instead of "LSP". Resolve #687
I have finally reached the first part of 'mini.statusline' refactor. The It also means that the icon is not shown if there is no diagnostic entries in the buffer. Previously it served as an indicator that LSP server was attached to the buffer. Now there is a |
Thanks @echasnovski! |
Contributing guidelines
Module(s)
mini.statusline
Description
Hello @echasnovski,
Using this plugin I could dispose of many lualine theme overrides. It was a joy to work with!
I added diagnostic colors as described here.
In order to do this, I also had to include code for the
lsp
(methodMiniStatusline.section_diagnostics
).Currently, section
diagnostics
does not show when there is no lsp attached. Is that correct? The user could missdiagnostics
when having alinter
instead of anlsp
.Would you accept a PR where the lsp string is created in a separate method?
An outline:
Best regards!
The text was updated successfully, but these errors were encountered: