diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2020-03-02 00:34:02 +0100 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-03-02 00:34:02 +0100 | 
| commit | 6b540d7db030e4110aa3a31dd06c6c41387444db (patch) | |
| tree | 1cd1da5b35cf1c34b38d7506ff93aabf861747bf /autoload/go | |
| parent | 35ea4d2b9072594b6c0ccf87bde7978ed9f94755 (diff) | |
| download | vim-polyglot-6b540d7db030e4110aa3a31dd06c6c41387444db.tar.gz vim-polyglot-6b540d7db030e4110aa3a31dd06c6c41387444db.zip  | |
Update
Diffstat (limited to 'autoload/go')
| -rw-r--r-- | autoload/go/config.vim | 53 | 
1 files changed, 29 insertions, 24 deletions
diff --git a/autoload/go/config.vim b/autoload/go/config.vim index d4ba03e4..9599ebb0 100644 --- a/autoload/go/config.vim +++ b/autoload/go/config.vim @@ -60,7 +60,10 @@ function! go#config#SetTermCloseOnExit(value) abort  endfunction  function! go#config#TermEnabled() abort -  return has('nvim') && get(g:, 'go_term_enabled', 0) +  " nvim always support +  " vim will support if terminal feature exists +  let l:support = has('nvim') || has('terminal') +  return support && get(g:, 'go_term_enabled', 0)  endfunction  function! go#config#SetTermEnabled(value) abort @@ -162,23 +165,6 @@ function! go#config#SetGuruScope(scope) abort    endif  endfunction -function! go#config#GocodeUnimportedPackages() abort -  return get(g:, 'go_gocode_unimported_packages', 0) -endfunction - -let s:sock_type = (has('win32') || has('win64')) ? 'tcp' : 'unix' -function! go#config#GocodeSocketType() abort -  return get(g:, 'go_gocode_socket_type', s:sock_type) -endfunction - -function! go#config#GocodeProposeBuiltins() abort -  return get(g:, 'go_gocode_propose_builtins', 1) -endfunction - -function! go#config#GocodeProposeSource() abort -  return get(g:, 'go_gocode_propose_source', 0) -endfunction -  function! go#config#EchoCommandInfo() abort    return get(g:, 'go_echo_command_info', 1)  endfunction @@ -263,6 +249,10 @@ function! go#config#AddtagsTransform() abort    return get(g:, 'go_addtags_transform', "snakecase")  endfunction +function! go#config#AddtagsSkipUnexported() abort +  return get(g:, 'go_addtags_skip_unexported', 0) +endfunction +  function! go#config#TemplateAutocreate() abort    return get(g:, "go_template_autocreate", 1)  endfunction @@ -491,6 +481,10 @@ function! go#config#HighlightDebug() abort    return get(g:, 'go_highlight_debug', 1)  endfunction +function! go#config#DebugBreakpointSignText() abort +  return get(g:, 'go_debug_breakpoint_sign_text', '>') +endfunction +  function! go#config#FoldEnable(...) abort    if a:0 > 0      return index(go#config#FoldEnable(), a:1) > -1 @@ -516,23 +510,30 @@ function! go#config#ReferrersMode() abort  endfunction  function! go#config#GoplsCompleteUnimported() abort -  return get(g:, 'go_gopls_complete_unimported', 0) +  return get(g:, 'go_gopls_complete_unimported', v:null)  endfunction  function! go#config#GoplsDeepCompletion() abort -  return get(g:, 'go_gopls_deep_completion', 1) +  return get(g:, 'go_gopls_deep_completion', v:null)  endfunction -function! go#config#GoplsFuzzyMatching() abort -  return get(g:, 'go_gopls_fuzzy_matching', 1) +function! go#config#GoplsMatcher() abort +  if !exists('g:go_gopls_matcher') && get(g:, 'g:go_gopls_fuzzy_matching', v:null) is 1 +    return 'fuzzy' +  endif +  return get(g:, 'go_gopls_matcher', v:null)  endfunction  function! go#config#GoplsStaticCheck() abort -  return get(g:, 'go_gopls_staticcheck', 0) +  return get(g:, 'go_gopls_staticcheck', v:null)  endfunction  function! go#config#GoplsUsePlaceholders() abort -  return get(g:, 'go_gopls_use_placeholders', 0) +  return get(g:, 'go_gopls_use_placeholders', v:null) +endfunction + +function! go#config#GoplsTempModfile() abort +  return get(g:, 'go_gopls_temp_modfile', v:null)  endfunction  function! go#config#GoplsEnabled() abort @@ -543,6 +544,10 @@ function! go#config#DiagnosticsEnabled() abort    return get(g:, 'go_diagnostics_enabled', 0)  endfunction +function! go#config#GoplsOptions() abort +  return get(g:, 'go_gopls_options', []) +endfunction +  " Set the default value. A value of "1" is a shortcut for this, for  " compatibility reasons.  if exists("g:go_gorename_prefill") && g:go_gorename_prefill == 1  | 
