aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/_meta.lua
blob: acf799264ef124bdb87dfab948165acd96175475 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---@meta
error('Cannot require a meta file')

---@alias lsp-handler fun(err: lsp.ResponseError|nil, result: any, context: lsp.HandlerContext, config: table|nil): any?

---@class lsp.HandlerContext
---@field method string
---@field client_id integer
---@field bufnr? integer
---@field params? any

---@class lsp.ResponseError
---@field code integer
---@field message string
---@field data string|number|boolean|table[]|table|nil

--- @class lsp.DocumentFilter
--- @field language? string
--- @field scheme? string
--- @field pattern? string

--- @alias lsp.RegisterOptions any | lsp.StaticRegistrationOptions | lsp.TextDocumentRegistrationOptions