Neovim LSP API Reference

Provide LSP function definitions for Neovim Lua scripting and plugin development.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/farreeez/99 --skill neovim-lsp-api-reference-farreeez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Neovim LSP API Reference
Source: https://github.com/farreeez/99/tree/main/.agents/skills/vim.lsp
Command: npx skills add https://github.com/farreeez/99 --skill neovim-lsp-api-reference-farreeez

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides detailed function definitions from Neovim's LSP documentation, enabling developers to easily understand and implement LSP features in Neovim Lua configurations.

Core Features & Use Cases

  • Function Reference: Offers a complete list of LSP functions for buffer management, diagnostics, code actions, and more.
  • Use Case: A developer can quickly look up how to attach a language server or trigger a format operation directly from this reference.
  • Technical Scope: Covers method signatures and usage for integrating or debugging Neovim's LSP client capabilities.

Quick Start

Lookup the vim.lsp.buf.definition() function to navigate to symbol definitions within your code.

Frequently Asked Questions about Neovim LSP API Reference

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

FAQPage Schema
How do I use Neovim LSP functions to attach a language server in Lua?

Neovim LSP functions provide the necessary APIs to attach a language server within your Lua configuration. You can look up specific method signatures for server initialization and buffer management directly from this reference.

What is the Neovim LSP API used for when configuring advanced workflows?

The Neovim LSP API supplies comprehensive function definitions for scripting and plugin development. It enables developers to implement, debug, and optimize language server features like diagnostics and code actions.

How do I trigger a format operation using Neovim's LSP client?

Triggering a format operation uses specific Neovim LSP client capabilities. This reference details the method signatures and usage required to integrate formatting operations directly into your Neovim workflow.

Do I need external dependencies to use Neovim LSP function references?

No external dependencies are required to use the Neovim LSP function references. The reference is compiled directly from Neovim's internal documentation, allowing immediate lookup without installing additional packages.

Where can I find method signatures for debugging Neovim LSP diagnostics?

Method signatures for debugging Neovim LSP diagnostics are available in this comprehensive function reference. It covers buffer management, diagnostics, and code actions to help optimize language server features.