搜索

PythonReactSEOPDF
GitHub Skill

vimlsp

Language Server Protocol (LSP) integration

khulnasoft☆ 0 仓库 Stars4 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Neovim LSP API Reference

This document contains common API functions used when working with Neovim's LSP client.


vim.lsp.buf

These functions are typically called from buffer-local keybindings to interact with the language server.

function vim.lsp.buf.definition() end           -- Jump to definition
function vim.lsp.buf.declaration() end          -- Jump to declaration
function vim.lsp.buf.type_definition() end      -- Jump to type definition
function vim.lsp.buf.implementation() end       -- Jump to implementation
function vim.lsp.buf.hover() end                -- Display hover information
function vim.lsp.buf.signature_help() end       -- Display signature information
function vim.lsp.buf.code_action() end          -- Select code action
function vim.lsp.buf.references() end           -- List all references
function vim.lsp.buf.rename(new_name) end       -- Rename symbol
function vim.lsp.buf.format(options) end        -- Format buffer
function vim.lsp.buf.workspace_symbol(query) end -- Find workspace symbol

vim.lsp.util

Utility functions for LSP integration.

function vim.lsp.util.make_range_params() end
function vim.lsp.util.apply_text_edits(edits, bufnr, offset_encoding) end
function vim.lsp.util.jump_to_location(location, offset_encoding) end

Internal Configuration (khulnasoft)

Your configuration uses mason.nvim and mason-lspconfig.nvim to manage servers.

Managed Servers
  • lua_ls: Lua development.
  • rust_analyzer: Rust development.
  • gopls: Go development.
  • zls: Zig development.
Global Keybindings

Mapped during LspAttach:

  • gd: Definition
  • K: Hover
  • <leader>vws: Workspace Symbol
  • <leader>vd: Open Diagnostic Float
  • <leader>vca: Code Action
  • <leader>vrr: References
  • <leader>vrn: Rename
  • <C-h>: Signature Help

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!