Closed crispgm closed 2 years ago
@crispgm I think you did install the friendly-snippet. So the snippet actually duplicated in your environment.
You can remove duplicated snippet via cmp's following config.
cmp.setup {
formatting = {
format = function(entry, vim_item)
vim_item.dup = ({
vsnip = 0
})[entry.source.name] or 1
end
}
}
@crispgm I think you did install the friendly-snippet. So the snippet actually duplicated in your environment.
You can remove duplicated snippet via cmp's following config.
cmp.setup { formatting = { format = function(entry, vim_item) vim_item.dup = ({ vsnip = 0 })[entry.source.name] or 1 end } }
Thanks for this workaround. But I did not install other snippet, you may investigate my nvim configs here.
@crispgm You seems to set { name = 'vsnip' }
twice.
@crispgm You seems to set
{ name = 'vsnip' }
twice.
😅 OMG, that's my fault. Maybe I should make a PR for deduplicate this?
I'm suprising nvim-cmp shows both sources. 🤣 No. The PR is not needed. Thank you.
It works well with nvim-compe, vim-vsnip, and vim-vsnip-integ.
Screenshot:
My vsnip snippets: