Closed joshuarubin closed 5 years ago
@joshuarubin
--> request #51: textDocument/completion: {"textDocument":{"uri":"file:///home/saibing/git/go/source/hello/math.go"},"position":{"line":15,"character":7},"context":{"triggerKind":2,"triggerCharacter":"."}}
<-- result #51: textDocument/completion: {"isIncomplete":false,"items":[{"label":"Foo = \"bar\"","kind":21,"detail":"string","sortText":"00000","insertText":"Foo","insertTextFormat":2,"textEdit":{"range":{"start":{"line":15,"character":7},"end":{"line":15,"character":7}},"newText":"Foo"}}]}
bingo's return is ok:
"label": "Foo = \"bar\""
"insertText" = "Foo"
"newText" = "Foo"
coc.nvim, vsocde works well.
Maybe you can try coc.nvim.
I think it better than autozimu/LanguageClient-neovim or ncm2/ncm2.
I think this is a bingo bug, but feel free to close if it isn't. Using neovim with:
When completing a constant e.g. typing
pkg.Fo
where there existsconst pkg.Foo = "bar"
will complete withpkg.Foo = "bar"
instead of justpkg.Foo
.This seems related to #15