You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently switched from hrsh7th/nvim-cmp to mini.completion. Everything seems to work great out of the box except for one thing. When completing functions with LSP (I use golang, but I think it is true for all LSPs) the completed function appears with some garbage where parameters should be.
Example: I complete Logger.Info function which takes some parameters.
The completed line looks like this
Logger.Info(${1:})
This ${1:} is the garbage. I didn't find a way to disable it. Please help.
Neovim version
v0.11.0-dev-957+g0e42c81c7f
Steps to reproduce
Setup any LSP (gopls in my case)
Open any codebase
Start typing a funcion name, complete a function name.
Observe garbage where function parameters should be!
Expected behavior
Function's parameter list should be empty
Actual behavior
Garbage ${1:} appears
The text was updated successfully, but these errors were encountered:
Indeed, as @GitMurf said, this comes from LSP server advertising completion item as not 'Snippet' kind but instead completing as if it was a snippet.
I was also told somewhere (can not find this, unfortunately), that this can be controlled via textDocument.completion.completionItem.snippetSupport server capability. I.e. setting this to false in your LSP setup (at least until there is snippet support in 'mini.completion') should fix the issue.
Contributing guidelines
Module(s)
mini.completion
Description
Hi @echasnovski !
I recently switched from
hrsh7th/nvim-cmp
tomini.completion
. Everything seems to work great out of the box except for one thing. When completing functions with LSP (I use golang, but I think it is true for all LSPs) the completed function appears with some garbage where parameters should be.Example: I complete
Logger.Info
function which takes some parameters.The completed line looks like this
This
${1:}
is the garbage. I didn't find a way to disable it. Please help.Neovim version
v0.11.0-dev-957+g0e42c81c7f
Steps to reproduce
Expected behavior
Function's parameter list should be empty
Actual behavior
Garbage
${1:}
appearsThe text was updated successfully, but these errors were encountered: