This commit is contained in:
Adam Stankiewicz
2019-11-04 09:04:28 +01:00
parent 31c55b85a0
commit 4e95df7c7e
26 changed files with 645 additions and 132 deletions

View File

@@ -482,6 +482,11 @@ function! go#config#CodeCompletionEnabled() abort
return get(g:, "go_code_completion_enabled", 1)
endfunction
function! go#config#Updatetime() abort
let go_updatetime = get(g:, 'go_updatetime', 800)
return go_updatetime == 0 ? &updatetime : go_updatetime
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

View File

@@ -516,8 +516,10 @@ function! rust#Test(all, options) abort
return rust#Run(1, '--test ' . a:options)
endif
if has('terminal') || has('nvim')
if has('terminal')
let cmd = 'terminal '
elseif has('nvim')
let cmd = 'noautocmd new | terminal '
else
let cmd = '!'
let manifest = shellescape(manifest)