mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-13 05:53:50 -05:00
Allow vim-polyglot to load in non-compatible mode
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user