Skip to content

Limit Diagnostics to the currently focused buffer #763

Open
@martsa1

Description

@martsa1

Is your feature request related to a problem? Please describe.

Currently, the diagnostics output displays diagnostics from all open buffers. On even moderate projects, this means that information relevant to the current buffer is quickly lost.

Describe the solution you'd like

It would be great to be able to configure diagnostics output to show either the current buffer only, or preserve the current behaviour of showing diagnostics from all open buffers.

Describe alternatives you've considered

#726 would potentially allow me to configure filtering based on the current buffer's file name which would achieve pretty much what I want.

The only other alternative is to edit only one or two files at a time and restart neovim regularly, which doesn't seem reasonable, especially as neomake + pylint + flake8 behaves the way I would expect out of the box.

Additional context

Sample of what I currently see.
image

From what I can make of the pyls debug output, it appears to correctly send only diagnostics for the one file from the didChange event etc, so I'm guessing that the language client is holding onto previous diagnostics?

Neovim Version: 0.3.1
LanguageClient-neovim version: Up-to-date
Python-Language-Server version: Up-to-date

Thanks for all your work and effort with the language client, its amazing!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions