Lsp: Disable diagnostic gutters

Created on 13 Sep 2017  路  5Comments  路  Source: sublimelsp/LSP

Is there any way to disable diagnostic gutters?

Thanks!

Most helpful comment

Commit https://github.com/tomv564/LSP/commit/bb577d6ec9be2e5774d3634edef8aeb2be6fbcf7 introduced a diagnostics_gutter_marker setting, defaulted to "dot". It can be set to "" to not show gutter markers for diagnostics.

I noticed that GitGutter reliably overwrites LSP's gutter markers.

screen shot 2017-09-17 at 09 18 04

To reverse this behaviour, you would have to add LSP's regions to protected_regions in GitGutter.sublime-settings:

"protected_regions": [
  // include the default protected regions here
  "lsp_error",
  "lsp_warning",
  "lsp_info",
  "lsp_hint"
]

:+1: to GitGutter for implementing this.

  • [ ] Before closing, add this to documentation.

All 5 comments

No, but it would be trivial to add a setting to change from the current "dot" to "" or None.
Can you describe the issue caused by the gutter marks? Is it a conflict with another package using regions to draw in the gutter?

Is it a conflict with another package using regions to draw in the gutter?

There can be only one icon in the gutter. If you have a linter-style marks, vcs marks, bookmarks and something like BracketHighlighter and it becomes pretty complicated. GitGutter seems to have finally stopped hiding my bookmarks recently for instance.

So, I like having control over this and disable the marks for packages where I don't really need them. In this particular case years of Word and SublimeLinter have trained me to look for squiggly underlines and I find them more easily than the red dots in the gutter. I'd rather save the space for GitGutter.

Thanks for clarifying - let's add a setting for this!

Commit https://github.com/tomv564/LSP/commit/bb577d6ec9be2e5774d3634edef8aeb2be6fbcf7 introduced a diagnostics_gutter_marker setting, defaulted to "dot". It can be set to "" to not show gutter markers for diagnostics.

I noticed that GitGutter reliably overwrites LSP's gutter markers.

screen shot 2017-09-17 at 09 18 04

To reverse this behaviour, you would have to add LSP's regions to protected_regions in GitGutter.sublime-settings:

"protected_regions": [
  // include the default protected regions here
  "lsp_error",
  "lsp_warning",
  "lsp_info",
  "lsp_hint"
]

:+1: to GitGutter for implementing this.

  • [ ] Before closing, add this to documentation.

Sorry for being late. @braver exactly explain the reason of my issue :-)

Was this page helpful?
0 / 5 - 0 ratings