mirror of
https://github.com/neovim/neovim.git
synced 2026-04-30 19:24:09 +00:00
feat(lsp): more annotations
This commit is contained in:
committed by
Lewis Russell
parent
320e9c1c21
commit
97bea3163a
@@ -1,13 +1,14 @@
|
||||
---@meta
|
||||
error('Cannot require a meta file')
|
||||
|
||||
---@alias lsp-handler fun(err: lsp.ResponseError|nil, result: any, context: lsp.HandlerContext, config: table|nil): any?
|
||||
---@alias lsp.Handler fun(err: lsp.ResponseError?, result: any, context: lsp.HandlerContext, config?: table): ...any
|
||||
|
||||
---@class lsp.HandlerContext
|
||||
---@field method string
|
||||
---@field client_id integer
|
||||
---@field bufnr? integer
|
||||
---@field params? any
|
||||
---@field version? integer
|
||||
|
||||
---@class lsp.ResponseError
|
||||
---@field code integer
|
||||
|
||||
Reference in New Issue
Block a user