#1891 Fix the go-langserver tests

This commit is contained in:
w0rp
2018-09-06 17:05:05 +01:00
parent f1d5bcbf98
commit 7086769289
2 changed files with 29 additions and 12 deletions

View File

@@ -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',
\})