-
-
Notifications
You must be signed in to change notification settings - Fork 624
Add option to use diagnostic signs #1826
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
Comments
To confirm your proposal: this is a change to the diagnostics icons/glyphs, not diagnostics itself. This is a good idea. We should use the string|table pattern, something like:
Fallback shouldn't be a drama. |
That is what I was proposing. 👍 |
Please update the keys to contain full paths in the user's options. I would be most grateful if you could apply the same to |
I would even argue so that should become default value. Users set up diagnostics and expect them to propagate throughout editor. I certainly set nvim-tree's diagnostic to the same characters. |
Defaults, yes please. I've already applied the standard groups for diagnostic highlighting: https://github.com/nvim-tree/nvim-tree.lua/pull/2455/files#diff-16d5e714e01617fa3906fbcf68963baeb235dde81bc9fd2e7a5ba95526765e18R112 |
Highlight groups are defined in plugins like https://github.com/echasnovski/mini.base16/tree/main and used by lualine etc. if they are present. The lualine PR above hasn't been merged; it's still using the same mechanism as nvim-tree. This is possible following #2415 - we can simply use any pre-defined signs:
|
Can this functionality be implemented utilising API?
nvim-tree exposes extensive API (see
:h nvim-tree-api
). Can it be used to achieve your goal? Is there a missing API that would make it possible?Given stable status of nvim-tree it's preferred to add new API than new functionality.
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Describe alternatives you've considered
Additional context
I think this is probably the common scenario. Most folks want to share the diagnostic signs across plugins related to LSP. I'd be happy to open a PR for this if it is determined to be valuable.
The text was updated successfully, but these errors were encountered: