vim-mucomplete icon indicating copy to clipboard operation
vim-mucomplete copied to clipboard

Neovim LSP snippet completion support

Open smlx opened this issue 10 months ago • 1 comments

Some LSPs in Neovim now provide snippet completion options. Here is what I see when I hit <Tab> on a slice in e.g. Go, using the gopls language server:

Image

Selecting that completion option inserts the text directly. For example:

Image

How can I expand the snippet from the LSP instead of just inserting the name of the snippet?

smlx avatar May 29 '25 02:05 smlx

I think that needs explicit support from the plugin, as was done for Neosnippet or UltiSnips. I don't use Neovim, so I would need to set it up and understand how that completion works. It is likely that this not going to happen any time soon, unfortunately. PRs are welcome, of course.

Another option would be to look at some autocommand events recently added to Vim (such as CompleteChanged), and see if it is possible to hook into one of them to set the text in the buffer.

lifepillar avatar May 29 '25 06:05 lifepillar