nvim-lua / completion-nvim

A async completion framework aims to provide completion to neovim's built in LSP written in Lua
Apache License 2.0
974 stars 78 forks source link

Support vsnip's same prefix items #331

Closed hrsh7th closed 3 years ago

hrsh7th commented 3 years ago

Related https://github.com/hrsh7th/vim-vsnip/issues/160

Currently, completion-nvim expands snippet with vsnip#expand. This will re-detect snippet with prefix.

But if multiple items have the same prefix, it could be wrong behavior.

So I provide snippet_body as user_data and snippet expansion with vsnip#anonymous.

haorenW1025 commented 3 years ago

Thanks for the fix! Always appreciate your help:)

hrsh7th commented 3 years ago

Thank you!