hrsh7th / nvim-cmp

A completion plugin for neovim coded in Lua.
MIT License
7.47k stars 370 forks source link

feat: default to `vim.snippet` for snippet expansion if available #1820

Closed mehalter closed 3 months ago

mehalter commented 5 months ago

Neovim v0.10 is introducing a native snippet engine. It seems like a good default to configure that for snippet expansion if it is available. Let me know what you think and if I should include any more details in the documentation!

hrsh7th commented 3 months ago

I think this is a perfectly reasonable fix, but it can cause confusion for people who use nvim-cmp without key mapping for snippets.

I'll prioritize reasonable modifications, so I'll merge them.