nvim-cmp
A completion plugin for neovim coded in Lua. (by hrsh7th)
LuaSnip
Snippet Engine for Neovim written in Lua. (by L3MON4D3)
nvim-cmp | LuaSnip | |
---|---|---|
256 | 80 | |
8,785 | 3,866 | |
1.7% | 2.5% | |
7.9 | 8.9 | |
about 1 month ago | 5 days ago | |
Lua | Lua | |
MIT License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nvim-cmp
Posts with mentions or reviews of nvim-cmp.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-12-27.
-
How to Setup Vim for Kotlin Development
For this, we need to install a new completion engine: nvim-cmp. This engine uses completion “sources” (installed as separate dependencies) to populate the completion menu. So we also need to install cmp-buffer and cmp-nvim-lsp. Check out this tutorial by TJ DeVries for more info about how this plugin works.
-
Lite 🚀 ApolloNvim Distro 2024
👉 NVIM-CMP toolkit for better control comfort nvim. Such as help, command completion and much more.
-
Don't use “dependencies” in lazy.nvim
You should use many source plugins to use nvim-cmp effectively. The orders to load them lazily are difficult a bit to understand.
-
Customizing Your Lazyvim Setup for Personal Preferences
nvim-cmp (A completion engine plugin for neovim written in Lua. Completion sources are installed from external repositories and "sourced".)
-
Ultimate Neovim Setup Guide: lazy.nvim Plugin Manager
hrsh7th/nvim-cmp: A completion plugin for neovim coded in Lua.
-
My Flow and Productivity has Improved with the Simplicity of Neovim
Like many using Neovim, I'm leveraging the Nvim-Cmp plugin. With this plugin, I get the snippets, code completion, and documentation on functions that I'm used to that help me out when my brain slows.
- What is this red color in cmp?
-
cmp border background is changed all of a sudden.
Doing a fast scan on the commit history this is probably related to https://github.com/hrsh7th/nvim-cmp/pull/1689 . Hope it helps.
-
Do I need NeoVIM?
https://github.com/hrsh7th/nvim-cmp This is an autocompletion engine https://github.com/nvim-treesitter/nvim-treesitter This allows NeoVim to install parsing scripts so NeoVim can do things like code highlighting. https://github.com/williamboman/mason.nvim Not strictly necessary, but allows you to access a repo of LSP, install them, and configure them for without you actively messing about in config files. https://github.com/neovim/nvim-lspconfig Also not strictly necessary, but vastly simplifies LSP setup. https://github.com/williamboman/mason-lspconfig.nvim This lets the above two plugins talk to each other more easily.
-
Can't go down when writing a command nvim
Edit: Solved I only had to do this
LuaSnip
Posts with mentions or reviews of LuaSnip.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-05-05.
-
Nix Flake Templates
On the other hand, I also tried simpler solutions such as gists or snippets (1, 2) which I can use as starting points for my projects despite being not convenient for re-use and pretty much unmaintainable due to lack of clear structure.
-
Setting Up Neovim for Automad Theme Development
As the developer of the Automad flat-file content management system, I wanted to make working with Automad themes in Neovim as smooth as possible. Automad has its own templating syntax, so I created tree-sitter-automad to provide proper syntax highlighting. Since it’s not yet an official parser, you need to manually register it in Neovim. To speed up template writing, you can also add custom snippets using LuaSnip. Here's how to set everything up.
-
Ultimate Neovim Setup Guide: lazy.nvim Plugin Manager
L3MON4D3/LuaSnip: Snippet Engine for Neovim written in Lua.
-
UltiSnips – Snippet Solution for Vim
If you're using Neovim, check out LuaSnip: https://github.com/L3MON4D3/LuaSnip
-
What is your preferred snippet plug-in?
I’ve been using LuaSnip and never put much thought into it. And this was mainly because of because it seemed like the default and had good LSP integration. The one downside is that creating custom snippets is not that ergonomic, but I don’t mind it if it’s the price to pay for speed.
-
HTML and Css snippets
You can use LuaSnip and load snippets from VSCode. The documentation is pretty complete, but here is my config in case you want another reference.
-
Enabling python's snippets.
I am trying to add snippets for python, i have LuaSnip and friendly-snippets installed, but for some reason it does not load the snippets. This is how i load the plugins:
-
[Help] Paste triggers in Select mode
There was a similar issue in LuaSnip repo. The culprit was a keymap in the config. Do you happen to have a similar keymap somewhere in your config?
-
My Haskell snippet collection for Neovim - with tree-sitter and LSP
I have decided to extract my Haskell snippets for LuaSnip into a plugin: haskell-snippets.nvim.
-
How do I use template files via Lua?
Not exactly what you're talking about but you could look into LuaSnip?
What are some alternatives?
When comparing nvim-cmp and LuaSnip you can also consider the following projects:
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
vim-vsnip - Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.
nvim-lspconfig - Quickstart configs for Nvim LSP
ultisnips - UltiSnips - The ultimate snippet solution for Vim. Send pull requests to SirVer/ultisnips!
NvChad - Blazing fast Neovim framework providing solid defaults and a beautiful UI, enhancing your neovim experience.
friendly-snippets - Set of preconfigured snippets for different languages.