Closed p00f closed 3 years ago
If not, I'll make a PR (but I think it will be messy)
What font are you using, and do you have customized symbols? I cannot reproduce this visually in my setup - it looks like https://github.com/nvim-lua/lsp-status.nvim/blob/master/images/some_errors.png for me.
That screenshot doesn't use separators ._.
The separator used is the normal symbol for "or" - the one you get when you press shift+backslash
require "lsp-status".config({
indicator_separator = "|",
.......
})
also, the code snippet i mentioned seems to insert the separator between the indicator and the count
That screenshot does use separators, but they're whitespace (the default).
also, the code snippet i mentioned seems to insert the separator between the indicator and the count
Yes - I think this is an issue of poor/ambiguous variable naming. In https://github.com/nvim-lua/lsp-status.nvim/pull/29, where indicator_separator
was introduced, it's clear that the purpose of the separator is to go between the diagnostic symbol and count (hence why the default is whitespace).
However, your intended use (separating the different diagnostic components) is also reasonable. Right now, we don't have a config var for that separator - we hardcode whitespace: https://github.com/nvim-lua/lsp-status.nvim/blob/7c376c3924d4f807d6ce49450fdeaa18720349c9/lua/lsp-status/statusline.lua#L107
Maybe the solution here is
indicator_separator
to be clearerWhat do you think?
Make the new one component_separator
and don't break anyone's config, just make it clear in the README?
Sure, that works too. I would still like to rename the config variables to be clearer, but that can wait for another PR to group any breaking changes we want to introduce.
@p00f: can you please try #57 to see if it does what you want? We may need to tweak exactly where component_separator
gets used - right now, I still hardcode whitespace for the start and end of the set of information blocks, which is (imo) visually nicer but kind of an edge case hack.
Nice!
https://github.com/nvim-lua/lsp-status.nvim/blob/7c376c3924d4f807d6ce49450fdeaa18720349c9/lua/lsp-status/statusline.lua#L49
Was this intended? Aren't the separators supposed to be between different types of info?