diff options
Diffstat (limited to 'ale_linters/go')
-rw-r--r-- | ale_linters/go/langserver.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/go/langserver.vim b/ale_linters/go/langserver.vim index df956483..e049be7b 100644 --- a/ale_linters/go/langserver.vim +++ b/ale_linters/go/langserver.vim @@ -10,8 +10,8 @@ function! ale_linters#go#langserver#GetCommand(buffer) abort let l:options = substitute(l:options, '-gocodecompletion', '', 'g') let l:options = filter(split(l:options, ' '), 'empty(v:val) != 1') - if(ale#Var(a:buffer, 'completion_enabled') == 1) - call add(l:options, '-gocodecompletion') + if ale#Var(a:buffer, 'completion_enabled') + call add(l:options, '-gocodecompletion') endif let l:options = uniq(sort(l:options)) |