nvim_runtime_lua

vim.lsp.protocol

Methods2

function protocol.make_client_capabilities() -> lsp.ClientCapabilities

Gets a new ClientCapabilities object describing the LSP client capabilities.

function protocol.resolve_capabilities(server_capabilities: table) -> lsp.ServerCapabilities | nil

Creates a normalized object describing LSP server capabilities.

Parameters
server_capabilitiestable

Table of capabilities supported by the server

Returns
lsp.ServerCapabilities | nil

: Normalized table of capabilities

Fields7

protocol.Methods : vim.lsp.protocol.Methods
Deprecated
Use `vim.lsp.protocol.Method` instead.
protocol._provider_to_client_registration: table

stylua: ignore start Generated by gen_lsp.lua, keep at end of file. Maps method names to the required client capability

protocol._request_name_to_registration_provider: table

stylua: ignore start Generated by gen_lsp.lua, keep at end of file. Maps method names to dynamic/static registration providers

protocol._request_name_to_server_capability: table

stylua: ignore start Generated by gen_lsp.lua, keep at end of file. Maps method names to the required server capability A server capability equal to the method means there is no related server capability

protocol._method_supports_dynamic_registration: table

stylua: ignore start Generated by gen_lsp.lua, keep at end of file.

protocol._method_supports_static_registration: table

stylua: ignore start Generated by gen_lsp.lua, keep at end of file.

protocol._methods_with_no_registration_options: table

stylua: ignore start Generated by gen_lsp.lua, keep at end of file. These methods have no registration options but can still be registered dynamically.