A completion source for nvim-cmp that provides luasnip snippets as autocomplete candidates.
cmp_luasnip is a Neovim plugin that serves as a completion source for nvim-cmp, specifically designed to integrate luasnip snippets into the autocompletion menu. It solves the problem of accessing and inserting luasnip snippets efficiently during code editing by making them available as standard completion candidates. This bridges two popular Neovim tools to enhance snippet workflow.
Neovim users who utilize both nvim-cmp for autocompletion and luasnip for snippet management, particularly developers seeking tighter integration between these tools.
Developers choose cmp_luasnip because it provides a seamless, configurable way to access luasnip snippets within nvim-cmp's interface, eliminating context switching and improving editing speed. Its options for controlling autosnippets and conditional filtering offer flexibility tailored to individual workflows.
luasnip completion source for nvim-cmp
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Directly pulls luasnip snippets into nvim-cmp's completion menu, enabling browsing and insertion without context switching, as shown in the setup example.
Allows disabling of snippet's show_condition via `use_show_condition = false` option, providing broader completion suggestions tailored to user needs.
Offers control over autosnippet inclusion with `show_autosnippets` option, defaulting to false for backward compatibility to avoid unintended triggers.
Supports per-buffer activation/deactivation through nvim-cmp's source configuration, enabling granular workflow adjustments.
Including autosnippets can cause unintended snippet triggering upon selection, as the README notes it's 'problematic' and defaults to off, requiring careful configuration.
Requires correct installation and configuration of both nvim-cmp and luasnip, which can be error-prone for users new to Neovim's plugin ecosystem.
Heavily reliant on compatibility with nvim-cmp and luasnip, risking breakage with updates and adding to maintenance overhead.