summaryrefslogtreecommitdiff
path: root/ale_linters/go
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-09-06 17:05:05 +0100
committerw0rp <devw0rp@gmail.com>2018-09-06 17:05:05 +0100
commit70867692894aa99e9ef450f19f5ff7b571b98aad (patch)
tree813311c9a3573aec5fd1e8a4fdf92f3978845ca5 /ale_linters/go
parentf1d5bcbf988d2fff1ce396537534e55611c8b8d6 (diff)
downloadale-70867692894aa99e9ef450f19f5ff7b571b98aad.zip
#1891 Fix the go-langserver tests
Diffstat (limited to 'ale_linters/go')
-rw-r--r--ale_linters/go/langserver.vim (renamed from ale_linters/go/golangserver.vim)4
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/go/golangserver.vim b/ale_linters/go/langserver.vim
index c80b096d..df956483 100644
--- a/ale_linters/go/golangserver.vim
+++ b/ale_linters/go/langserver.vim
@@ -4,7 +4,7 @@
call ale#Set('go_langserver_executable', 'go-langserver')
call ale#Set('go_langserver_options', '')
-function! ale_linters#go#golangserver#GetCommand(buffer) abort
+function! ale_linters#go#langserver#GetCommand(buffer) abort
let l:executable = [ale#Escape(ale#Var(a:buffer, 'go_langserver_executable'))]
let l:options = ale#Var(a:buffer, 'go_langserver_options')
let l:options = substitute(l:options, '-gocodecompletion', '', 'g')
@@ -23,6 +23,6 @@ call ale#linter#Define('go', {
\ 'name': 'golangserver',
\ 'lsp': 'stdio',
\ 'executable_callback': ale#VarFunc('go_langserver_executable'),
-\ 'command_callback': 'ale_linters#go#golangserver#GetCommand',
+\ 'command_callback': 'ale_linters#go#langserver#GetCommand',
\ 'project_root_callback': 'ale#go#FindProjectRoot',
\})