Allow vim-polyglot to load in non-compatible mode

This commit is contained in:
Adam Stankiewicz
2020-10-19 02:25:59 +02:00
parent 3618414fad
commit c3e825027d
6 changed files with 28 additions and 15 deletions

View File

@@ -581,9 +581,9 @@ function! go#config#DiagnosticsEnabled() abort
endfunction
function! go#config#DiagnosticsLevel() abort
let l:default = 2
if has_key(g:, 'go_diagnostics_enabled') && !g:go_diagnostics_enabled
let l:default = 0
let l:default = 0
if has_key(g:, 'go_diagnostics_enabled') && g:go_diagnostics_enabled
let l:default = 2
endif
return get(g:, 'go_diagnostics_level', l:default)