Nvim-cmp API Reference

Catalog Nvim-cmp Lua module commands, functions, and configuration options.

1|Updated Oct 26, 2025
One-click install
npx skills add https://github.com/NeKon69/nvim-dot --skill nvim-cmp-api-reference
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Nvim-cmp API Reference
Source: https://github.com/NeKon69/nvim-dot/tree/main/.agents/skills/nvim-cmp
Command: npx skills add https://github.com/NeKon69/nvim-dot --skill nvim-cmp-api-reference

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive reference for the Nvim-cmp Lua API, helping users quickly find and understand available commands, modules, and functions for Neovim's completion engine.

Core Features & Use Cases

  • API Indexing: Lists all commands, module APIs, and LSP-related constants provided by nvim-cmp.
  • Quick Reference: Facilitates rapid lookup of function signatures and configuration options.
  • Use Case: A developer needing to configure custom completion behavior in Neovim can use this Skill to quickly find the correct cmp.config options and their parameters.

Quick Start

Use the Nvim-cmp API Reference skill to find the function for confirming a completion item.

Frequently Asked Questions about Nvim-cmp API Reference

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find the correct nvim-cmp Lua API function for confirming a completion item in Neovim?

To confirm a completion item using the nvim-cmp Lua API, reference the module function catalog to identify the exact confirmation command and its required parameters for your Neovim configuration.

What configuration options are available for customizing Neovim completion behavior with nvim-cmp?

Neovim completion behavior is customized through nvim-cmp configuration options, specifically by adjusting the cmp.config settings and their associated parameters to tailor the completion experience.

How does the nvim-cmp API handle LSP-related enumerations for completion?

The nvim-cmp API handles LSP-related enumerations by cataloging LSP constants, allowing developers to integrate Language Server Protocol completion capabilities within their Neovim plugin architecture.

Do I need to understand Lua and Neovim plugin architecture to use the nvim-cmp API?

Yes, understanding Lua and Neovim plugin architecture is required, as the nvim-cmp API reference details module functions and configuration options intended for developers integrating the completion engine.

What is the best way to look up module function signatures for Neovim's completion engine?

The best way to look up module function signatures for Neovim's completion engine is using an API indexing reference, which facilitates rapid lookup of available commands and configuration options.