From c9f2aa9ae03cb5a0faa4101642b482dad67500ed Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 18 Oct 2020 12:24:33 +0200 Subject: Leave only filetype detection for man, #576 --- doc/vim-go.txt | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'doc') diff --git a/doc/vim-go.txt b/doc/vim-go.txt index 26639768..18306a0f 100644 --- a/doc/vim-go.txt +++ b/doc/vim-go.txt @@ -1902,8 +1902,12 @@ When it is `v:null`, `gopls`' default will be used. By default it is `v:null`. *'g:go_gopls_local'* -Specifies the prefix for imports that `gopls` should consider group -separately. +Specifies the prefix for imports that `gopls` should group separately. + +The value can either be a string or a dictionary. When it is a string, all +workspaces will use the same value. When it is a dictionary, the key should be +the absolute path of the workspace and the value is the prefix to use for +local imports within that workspace. When it is `v:null`, `gopls`' default will be used. By default it is `v:null`. > @@ -1933,21 +1937,20 @@ default it is `v:null`. < *'g:go_diagnostics_enabled'* -Specifies whether `gopls` diagnostics are enabled. Only the diagnostics for -the current buffer will be processed when it is not set; all others will be -ignored. - -By default it is disabled. +Deprecated. See `'g:go_diagnostics_level'`. Specifies whether `gopls` +diagnostics are enabled. Only the diagnostics for the current buffer will be +processed when it is not set; all others will be ignored. By default it is +disabled. > let g:go_diagnostics_enabled = 0 < - *'g:go_diagnostics_ignore_warnings'* - -Specifies whether warnings from `gopls` diagnostics are ignored. + *'g:go_diagnostics_level'* -By default it is disabled. +Specifies the `gopls` diagnostics level. Valid values are 0, 1, and 2. 0 +ignores `gopls` diagnostics, 1 is for errors only, and 2 is for errors and +warnings. By default it is 2. > - let g:go_diagnostics_ignore_warnings = 0 + let g:go_diagnostics_level = 2 < *'g:go_template_autocreate'* -- cgit v1.2.3