Skip to content
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

Hide diagnostics depending on vim.diagnostic.is_disabled() #59

Open
alexmozaidze opened this issue Oct 26, 2023 · 0 comments
Open

Hide diagnostics depending on vim.diagnostic.is_disabled() #59

alexmozaidze opened this issue Oct 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@alexmozaidze
Copy link

Is your feature request related to a problem? Please describe.
Whenever I use an incomplete LSP that doesn't support some features of the language (like Fennel LSP), I get a lot of false-positives, which clutter up the view. I made a binding to toggle diagnostics, but when I do so, Satellite continues on showing them, even though they're supposed to be disabled.

Describe the solution you'd like
Disabling diagnostics depending on vim.diagnostic.is_disabled().

Describe alternatives you've considered
Just ignoring it. It's not much of a problem for any other LSP that is feature-complete.

Additional context
Screenshot of a macro-heavy config file, which Fennel LSP doesn't fully support yet:
macro-heavy keymaps

When I disable diagnostics using vim.diagnostic.disable():
macro-heavy keymaps with diagnostics disabled

@alexmozaidze alexmozaidze added the enhancement New feature or request label Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant