Languageclient-neovim: How to disable gutter?

Created on 29 Jan 2018  路  10Comments  路  Source: autozimu/LanguageClient-neovim

why? I think texthl has enough conspicuous.
I try to set the value of signText to an empty string, but there are still gutter:

let g:LanguageClient_diagnosticsDisplay = {
  \1: {'name': 'Error', 'texthl': 'ALEError', 'signText': '', 'signTexthl': 'ALEErrorSign',},
  \2: {'name': 'Warning', 'texthl': 'ALEWarning', 'signText': '', 'signTexthl': 'ALEWarningSign',},
  \3: {'name': 'Information', 'texthl': 'ALEInfo', 'signText': '', 'signTexthl': 'ALEInfoSign',},
  \4: {'name': 'Hint', 'texthl': 'ALEInfo', 'signText': '', 'signTexthl': 'ALEInfoSign',},
\}

So is there any option to disable gutter?
Thanks.

feature request help wanted

All 10 comments

No, but happy to take in PR.

By disable gutter, do you also mean disable error checking on save altogether? That's a feature I'm looking for that i haven't found.

Now that ALE also has support for LSP, I'd like to stick with ALE for error & syntax checking (mainly because I'm already running some non-LSP linters through ale and it makes sense to me for all error checking & highlighting to be handled by one plugin for consistency. Plus ALE has some nice helpers like making the current error count available to display in powerline, and being able to jump to the next error which I don't think LanguageClient has).

But I still want to use LanguageClient when possible for things like showing the type under the cursor, jump to definition, refactoring, and other non-error-displaying LSP use cases.

Is this possible?

I think you need check this setting https://github.com/autozimu/LanguageClient-neovim/blob/7cf0f288ce80d633f3f68a6476260e0dd48f6bc0/doc/LanguageClient.txt#L147

Just to be clear, when LanguageClient is handling diagnostics (default behaviour), it will update quickfix/location list, so jumping to next error etc is supported.

Not sure if this is a related issue;

I'm in a similar boat to some users where I'm already setup w/ ALE as my linter/fixer but still want to use a Language Server for jump-to/completion/etc. I thought I could accomplish this with

let g:LanguageClient_diagnosticsEnable = 0

For the most part, it seemed to work (no longer checking on pyls's internal linters that I didn't care for). However, something strange is happening where it seems that all the gutter symbols _are_ coming from ALE, but simply having LanguageClient installed is messing with the configuration of the what they look like.

With diagnostics off, I would expect this plugin to have no effect on the gutter/quickfix/locationlist at all, but it seems to still be leaking its config. Will https://github.com/autozimu/LanguageClient-neovim/pull/492 fix this problem? If this is unclear, I can elaborate w/ some screenshots and example init.vims

EDIT: from digging through :highlight, I noticed that all the ALE signs were cleared

ALEInfoSign    xxx cleared
ALEErrorSign   xxx cleared
ALEWarningSign xxx cleared

is this possibly caused from this line? https://github.com/autozimu/LanguageClient-neovim/blob/92b047bea8e47cada801da9bfe1f3aa89eaa5775/src/languageclient.rs#L411

I would think that shouldn't run if the diagnostics setting is disabled

@autozimu Sorry to bother, but I can't seem to locate this anywhere:

Is it currently possible to jump between error/info/warning messages? From looking over the past half hour, it doesn't seem to be possible.

Thanks

hey @dsifford , this part of the docs notes that that all the diagnostic info is populated in the quickfix or loclist: https://github.com/autozimu/LanguageClient-neovim/blob/next/doc/LanguageClient.txt#L47

Theres a bunch of ways of navigating these two lists, but I'd recommend looking into https://github.com/tpope/vim-unimpaired for some nice keybindings

@matthewgrossman You are a saint :pray:

Not sure how I missed that. Thanks so much!

Is it possible to enable diagnostic information in gutter but at the same time disable its handling in quickfix list/location list? For me, I feel the info in gutter is quite nice to have and helpful. But I don't want it to automatically update my quickfix list.

The quickfix list is used for many different purposes. For example, :vimgrep /TODO:/ * and then jump to each occurrence to make some changes. But this list is replaced by the diagnostics short after the change happens.

Was this page helpful?
0 / 5 - 0 ratings