nvim-cmp
github.com
4
Leaving SiteNav
External Link Disclaimer
You are about to visit github.com. This website is not operated by us. We are not responsible for its content or privacy practices.
About this website
nvim-cmp is a completion engine plugin for Neovim, providing a highly extensible autocompletion framework that aggregates suggestions from multiple sources and presents them in a customizable menu. Created by hrsh7th (Hiroya Fujimoto), nvim-cmp has become the de facto completion solution for the Neovim ecosystem with over 8,000 stars as of 2026, replacing older plugins like deoplete, nvim-compe, and coc.nvim for Lua-native configurations. The plugin is built on a source-based architecture where each completion source is an independent module that provides suggestions: LSP source (Language Server Protocol completions via vim.lsp), buffer source (word completions from current and opened buffers), path source (filesystem path completions), cmdline source (command-line mode completions), luasnip source (snippet expansions via LuaSnip), vsnip source (Visual Studio Code-style snippets via vim-vsnip), snippets source (built-in snippet support), spell source (dictionary completions), calc source (mathematical expression evaluation), emoji source, git source, look source (thesaurus), and many community sources. Key features include: customizable key mappings (including Tab/S-Tab cycling, Enter confirmation, and C-Space manual trigger), floating window documentation display (with Markdown rendering via treesitter), completion menu customization (window border, colors, icons via lspkind or devicons), ghost text display (inline completion preview like VS Code's inline suggestions), performance optimizations (debouncing, filtering, and sorting), snippet expansion with jump placeholders, and auto-imports for LSP-based completions. nvim-cmp uses Neovim's built-in LSP client and requires Neovim 0.7+.
Statistics
4
Views
0
Clicks
0
Like
0
Dislike