Closed amikai closed 4 years ago
Reproduced. But it is not neosnippet problem. Because, gopls's result is only one parameter.
It should be reported in gopls. Closing.
Note: Other LSP like pyls works for me instead.
And, you should provide more information to reproduce the problem. You have not upload reproduce instructions. We have not ESP skills.
Sorry for that, i will give detailed steps next time.
OK
OK. It is not gopls problem probably. You need to configure gopls like this.
lua require'nvim_lsp'.gopls.setup{
\ init_options = {
\ usePlaceholders = true,
\ }
\}
Note: It is suggested by @hrth7th.
It work. THX
When i using neosnippet completion for parameter, no matter how many parameter it have, it always expand one parameter. See the follwing two screenshot.
io.ReadFull
has two parameterabc
has three parameterSo i print the
lsp_item
at this line, i found'newText':'abc(${1:})'
(screenshot2 example)