sindrets / diffview.nvim

Single tabpage interface for easily cycling through diffs for all modified files for any git rev.
Other
3.57k stars 101 forks source link

[Feature] `disable_diagnostics` for default view #503

Closed gennaro-tedesco closed 1 month ago

gennaro-tedesco commented 1 month ago

According to the documentation the configuration view.merge_tool allows to set disable_diagnostics = true to avoid being cluttered with diagnostics while analysing differences and conflicts.

Is such option available for general default view too? I have tried to set it to no avail, I presume it isn't?

If not, do you reckon it could be added to the default views as well (at the moment I have set up a hook to disable diagnostics in diff view and it works just fine)?

sindrets commented 1 month ago

Yeah, good idea. I don't remember why I initially decided to only enable this for the merge tool. It was probably because I saw it as a greater necessity in conflict buffers, as they inevitably have broken syntax due to the conflict markers. But there isn't really a reason why this shouldn't be available in other contexts as well.

gennaro-tedesco commented 1 month ago

Thank you for looking into this so quickly, I tested the latest commit and it works as intended!