Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Neovim
  3. cmp_luasnip

cmp_luasnip

Apache-2.0Lua

A completion source for nvim-cmp that provides luasnip snippets as autocomplete candidates.

GitHubGitHub
775 stars42 forks0 contributors

What is cmp_luasnip?

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.

Target Audience

Neovim users who utilize both nvim-cmp for autocompletion and luasnip for snippet management, particularly developers seeking tighter integration between these tools.

Value Proposition

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.

Overview

luasnip completion source for nvim-cmp

Use Cases

Best For

  • Integrating luasnip snippets into nvim-cmp's completion menu
  • Streamlining snippet insertion during Neovim code editing
  • Configuring snippet completion behavior per buffer in Neovim
  • Managing autosnippet visibility in completion lists
  • Enhancing workflow for developers using both luasnip and nvim-cmp

Not Ideal For

  • Users of other completion frameworks like coc.nvim or deoplete instead of nvim-cmp
  • Developers relying on snippet engines other than luasnip, such as UltiSnips or snipmate
  • Projects seeking minimal plugin setups where direct snippet triggering without completion integration is sufficient

Pros & Cons

Pros

Seamless Integration

Directly pulls luasnip snippets into nvim-cmp's completion menu, enabling browsing and insertion without context switching, as shown in the setup example.

Configurable Filtering

Allows disabling of snippet's show_condition via `use_show_condition = false` option, providing broader completion suggestions tailored to user needs.

Autosnippet Management

Offers control over autosnippet inclusion with `show_autosnippets` option, defaulting to false for backward compatibility to avoid unintended triggers.

Buffer-Specific Control

Supports per-buffer activation/deactivation through nvim-cmp's source configuration, enabling granular workflow adjustments.

Cons

Autosnippet Caveats

Including autosnippets can cause unintended snippet triggering upon selection, as the README notes it's 'problematic' and defaults to off, requiring careful configuration.

Setup Complexity

Requires correct installation and configuration of both nvim-cmp and luasnip, which can be error-prone for users new to Neovim's plugin ecosystem.

Dependency Chain

Heavily reliant on compatibility with nvim-cmp and luasnip, risking breakage with updates and adding to maintenance overhead.

Frequently Asked Questions

Quick Stats

Stars775
Forks42
Contributors0
Open Issues8
Last commit1 year ago
CreatedSince 2021

Tags

#autocomplete#plugin#nvim-cmp#luasnip#neovim#lua#snippets

Built With

L
Lua

Included in

Neovim20.6k
Auto-fetched 13 hours ago

Related Projects

nvim-cmpnvim-cmp

A completion plugin for neovim coded in Lua.

Stars9,466
Forks436
Last commit3 months ago
nvim-mini/mini.nvim#mini.completionnvim-mini/mini.nvim#mini.completion

Library of 45+ independent Lua modules improving Neovim experience with minimal effort

Stars9,335
Forks306
Last commit1 day ago
blink.cmpblink.cmp

Performant, batteries-included completion plugin for Neovim

Stars6,422
Forks352
Last commit1 day ago
copilot.luacopilot.lua

Fully featured & enhanced replacement for copilot.vim complete with API for interacting with Github Copilot

Stars4,090
Forks159
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub