summaryrefslogtreecommitdiff
path: root/ale_linters/go/langserver.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-02-06 18:05:13 +0000
committerw0rp <devw0rp@gmail.com>2019-02-06 18:05:13 +0000
commit3e11cbd18da3852fab5dee3f743bc60dc87f0775 (patch)
tree0ca2b5c0e3a8a60b48ffbe569a12f6ac9687cd65 /ale_linters/go/langserver.vim
parent4d426bf2873c6e1cd2c71e478c756903307628d3 (diff)
downloadale-3e11cbd18da3852fab5dee3f743bc60dc87f0775.zip
Update syntax checking
* Line continuation characters should be on the same lines. * .vim file line indentation should be a multiple of 4.
Diffstat (limited to 'ale_linters/go/langserver.vim')
-rw-r--r--ale_linters/go/langserver.vim4
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))