Skip to content

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

Open
@alexmozaidze

Description

@alexmozaidze

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions