nvim-cmp
nvim-cmp is a completion engine plugin for Neovim that provides a framework for creating and managing completion sources, offering features like LSP completion, buffer completion, and more.
What Problem Does It Solve?
Traditional completion in Neovim can be:
- Limited to basic text completion
- Missing intelligent suggestions
- Lacks multiple completion sources
- No documentation preview
- Inefficient completion workflow
How It Improves Productivity
-
Better Interface:
- Multiple completion sources
- Customizable completion menu
- Documentation preview
- Fuzzy matching
-
Enhanced Features:
- Snippet support
- Custom sorting
- Native LSP integration
- Buffer completion
-
Advanced Features:
- Custom sources
- Menu customization
- Formatting options
- Performance optimization
How to Use
Basic Usage
- Navigate completions with C-n/C-p
- Scroll documentation with C-d/C-u
- Accept completion with C-y
- Close menu with C-e
- Accept with CR or Tab
- Scroll docs with C-d/C-u
- Close window with C-e
- Accept completion with C-y
Configuration
- Edit
lua/config/cmp.lua
- Set up completion sources
- Configure keybindings
- Customize appearance
Integration
- Works with LSP
- Compatible with snippets
- Supports multiple sources
- Works with other plugins