Skip to content

Commit 749b882

Browse files
authored
Merge pull request #3244 from bhcleek/lsp/missing
lsp: hookup noop sendMessage when gopls is missing
2 parents 696c4a4 + e3dae34 commit 749b882

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

autoload/go/lsp.vim

+1
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ function! s:newlsp() abort
477477

478478
let l:bin_path = go#path#CheckBinPath("gopls")
479479
if empty(l:bin_path)
480+
let l:lsp.sendMessage = funcref('s:noop')
480481
return l:lsp
481482
endif
482483

0 commit comments

Comments
 (0)