Neovim LSP API Reference

Reference Neovim LSP API function signatures and parameters for Lua scripting.

232|4|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/ThePrimeagen/skills --skill neovim-lsp-api-reference
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Neovim LSP API Reference
Source: https://github.com/ThePrimeagen/skills/tree/main/skills/vim.lsp
Command: npx skills add https://github.com/ThePrimeagen/skills --skill neovim-lsp-api-reference

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a quick reference for Neovim's Language Server Protocol (LSP) API functions, enabling developers to efficiently interact with LSP features within their Neovim environment.

Core Features & Use Cases

  • Function Lookup: Quickly find and understand the signature of various vim.lsp functions.
  • API Exploration: Facilitates deeper integration and customization of LSP behavior in Neovim.
  • Use Case: When writing a custom Neovim plugin that needs to interact with the LSP client, you can use this Skill to find the exact function to attach a client to a buffer.

Quick Start

Find the function to attach a Neovim LSP client to the current buffer.

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 find the function signature for Neovim LSP API functions in Lua?

To find Neovim LSP API function signatures in Lua, use this reference to quickly look up `vim.lsp` functions. It details function signatures and parameters for direct use in Lua scripting.

What Neovim LSP function do I use to attach a client to a buffer?

You can use this Neovim LSP API reference to find the exact function to attach a client to a buffer. It provides function lookup for direct integration when writing custom Neovim plugins.

How does the Neovim Language Server Protocol API work for plugin development?

The Neovim Language Server Protocol API works by exposing `vim.lsp` functions for Lua scripting. This reference facilitates deeper integration and customization of LSP behavior within Neovim.

Can I use this API reference to customize LSP behavior in Neovim?

Yes, you can use this reference to customize LSP behavior in Neovim. It provides the necessary function signatures and parameters to efficiently interact with LSP features in your environment.

Do I need to know Lua to use the Neovim LSP API reference?

Yes, you need to know Lua because the Neovim LSP API reference details function signatures and parameters for direct use in Lua scripting when configuring or extending Neovim's LSP capabilities.