chunk
comment
-- "--"
comment_content "- @brief"
comment
-- "--"
comment_content "- The `vim.lsp.buf_…` functions perform operations for LSP c"...
variable_declaration
local "local"
assignment_statement
variable_list
identifier "api"
= "="
expression_list
dot_index_expression
identifier "vim"
. "."
identifier "api"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "lsp"
= "="
expression_list
dot_index_expression
identifier "vim"
. "."
identifier "lsp"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "validate"
= "="
expression_list
dot_index_expression
identifier "vim"
. "."
identifier "validate"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "util"
= "="
expression_list
function_call
identifier "require"
arguments
( "("
string
' "'"
string_content "vim.lsp.util"
' "'"
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "npcall"
= "="
expression_list
dot_index_expression
dot_index_expression
identifier "vim"
. "."
identifier "F"
. "."
identifier "npcall"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "M"
= "="
expression_list
table_constructor
{ "{"
} "}"
comment
-- "--"
comment_content "- @param params? table"
comment
-- "--"
comment_content "- @return fun(client: vim.lsp.Client): lsp.TextDocumentPosit"...
function_declaration (+88 nodes collapsed)
variable_declaration
local "local"
assignment_statement
variable_list
identifier "hover_ns"
= "="
expression_list
function_call
dot_index_expression
identifier "api"
. "."
identifier "nvim_create_namespace"
arguments
( "("
string
' "'"
string_content "nvim.lsp.hover_range"
' "'"
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "rename_ns"
= "="
expression_list
function_call
dot_index_expression
identifier "api"
. "."
identifier "nvim_create_namespace"
arguments
( "("
string
' "'"
string_content "nvim.lsp.rename_range"
' "'"
) ")"
comment
-- "--"
comment_content "- @class vim.lsp.buf.hover.Opts : vim.lsp.util.open_floating"...
comment
-- "--"
comment_content "- @field silent? boolean"
comment
-- "--"
comment_content "- Displays hover information about the symbol under the curs"...
comment
-- "--"
comment_content "- window. The window will be dismissed on cursor move."
comment
-- "--"
comment_content "- Calling the function twice will jump into the floating win"...
comment
-- "--"
comment_content "- (thus by default, \"KK\" will open the hover window and focu"...
comment
-- "--"
comment_content "- In the floating window, all commands and mappings are avai"...
comment
-- "--"
comment_content "- except that \"q\" dismisses the window."
comment
-- "--"
comment_content "- You can scroll the contents the same as you would any othe"...
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Note: to disable hover highlights, add the following to yo"...
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- ```lua"
comment
-- "--"
comment_content "- vim.api.nvim_create_autocmd('ColorScheme', {"
comment
-- "--"
comment_content "- callback = function()"
comment
-- "--"
comment_content "- vim.api.nvim_set_hl(0, 'LspReferenceTarget', {})"
comment
-- "--"
comment_content "- end,"
comment
-- "--"
comment_content "- })"
comment
-- "--"
comment_content "- ```"
comment
-- "--"
comment_content "- @param config? vim.lsp.buf.hover.Opts"
function_declaration (+1069 nodes collapsed)
function_declaration (+142 nodes collapsed)
comment
-- "--"
comment_content "-@param method vim.lsp.protocol.Method.ClientToServer.Reques"...
comment
-- "--"
comment_content "-@param opts? vim.lsp.LocationOpts"
function_declaration (+898 nodes collapsed)
comment
-- "--"
comment_content "- @class vim.lsp.ListOpts"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- list-handler replacing the default handler."
comment
-- "--"
comment_content "- Called for any non-empty result."
comment
-- "--"
comment_content "- This table can be used with |setqflist()| or |setloclist()"...
comment
-- "--"
comment_content "- ```lua"
comment
-- "--"
comment_content "- local function on_list(options)"
comment
-- "--"
comment_content "- vim.fn.setqflist({}, ' ', options)"
comment
-- "--"
comment_content "- vim.cmd.cfirst()"
comment
-- "--"
comment_content "- end"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- vim.lsp.buf.definition({ on_list = on_list })"
comment
-- "--"
comment_content "- vim.lsp.buf.references(nil, { on_list = on_list })"
comment
-- "--"
comment_content "- ```"
comment
-- "--"
comment_content "- @field on_list? fun(t: vim.lsp.LocationOpts.OnList)"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Whether to use the |location-list| or the |quickfix| list "...
comment
-- "--"
comment_content "- ```lua"
comment
-- "--"
comment_content "- vim.lsp.buf.definition({ loclist = true })"
comment
-- "--"
comment_content "- vim.lsp.buf.references(nil, { loclist = false })"
comment
-- "--"
comment_content "- ```"
comment
-- "--"
comment_content "- @field loclist? boolean"
comment
-- "--"
comment_content "- @class vim.lsp.LocationOpts.OnList"
comment
-- "--"
comment_content "- @field items vim.quickfix.entry[] See |setqflist-what|"
comment
-- "--"
comment_content "- @field title? string Title for the list."
comment
-- "--"
comment_content "- @field context? { bufnr: integer, method: string } Subset "...
comment
-- "--"
comment_content "- @class vim.lsp.LocationOpts: vim.lsp.ListOpts"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Jump to existing window if buffer is already open."
comment
-- "--"
comment_content "- @field reuse_win? boolean"
comment
-- "--"
comment_content "- Jumps to the declaration of the symbol under the cursor."
comment
-- "--"
comment_content "- @note Many servers do not implement this method. Generally"...
comment
-- "--"
comment_content "- @param opts? vim.lsp.LocationOpts"
function_declaration (+41 nodes collapsed)
comment
-- "--"
comment_content "- Jumps to the definition of the symbol under the cursor."
comment
-- "--"
comment_content "- @param opts? vim.lsp.LocationOpts"
function_declaration (+41 nodes collapsed)
comment
-- "--"
comment_content "- Jumps to the definition of the type of the symbol under th"...
comment
-- "--"
comment_content "- @param opts? vim.lsp.LocationOpts"
function_declaration (+41 nodes collapsed)
comment
-- "--"
comment_content "- Lists all the implementations for the symbol under the cur"...
comment
-- "--"
comment_content "- quickfix window."
comment
-- "--"
comment_content "- @param opts? vim.lsp.LocationOpts"
function_declaration (+41 nodes collapsed)
comment
-- "--"
comment_content "- @param results table<integer,{err: lsp.ResponseError?, res"...
function_declaration (+282 nodes collapsed)
variable_declaration
local "local"
assignment_statement
variable_list
identifier "sig_help_ns"
= "="
expression_list
function_call
dot_index_expression
identifier "api"
. "."
identifier "nvim_create_namespace"
arguments
( "("
string
' "'"
string_content "nvim.lsp.signature_help"
' "'"
) ")"
comment
-- "--"
comment_content "- @class vim.lsp.buf.signature_help.Opts : vim.lsp.util.open"...
comment
-- "--"
comment_content "- @field silent? boolean"
comment
-- "--"
comment_content "- Displays signature information about the symbol under the "...
comment
-- "--"
comment_content "- floating window. Allows cycling through signature overload"...
comment
-- "--"
comment_content "- which can be remapped via `<Plug>(nvim.lsp.ctrl-s)`"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Example:"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- ```lua"
comment
-- "--"
comment_content "- vim.keymap.set('n', '<C-b>', '<Plug>(nvim.lsp.ctrl-s)')"
comment
-- "--"
comment_content "- ```"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- @param config? vim.lsp.buf.signature_help.Opts"
function_declaration (+831 nodes collapsed)
comment
-- "--"
comment_content "- @deprecated"
comment
-- "--"
comment_content "- Retrieves the completion items at the current cursor posit"...
comment
-- "--"
comment_content "- called in Insert mode."
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "-@param context table (context support not yet implemented) "...
comment
-- "--"
comment_content "- about the context in which a completion was triggered (how"...
comment
-- "--"
comment_content "- and by which trigger character, if applicable)"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "-@see vim.lsp.protocol.CompletionTriggerKind"
function_declaration (+83 nodes collapsed)
comment
-- "--"
comment_content "-@param bufnr integer"
comment
-- "--"
comment_content "-@param mode \"v\"|\"V\""
comment
-- "--"
comment_content "-@return table {start={row,col}, end={row,col}} using (1, 0)"...
function_declaration (+279 nodes collapsed)
comment
-- "--"
comment_content "- @class vim.lsp.buf.format.Opts"
comment
-- "--"
comment_content "- @inlinedoc"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Can be used to specify FormattingOptions. Some unspecified"...
comment
-- "--"
comment_content "- automatically derived from the current Nvim options."
comment
-- "--"
comment_content "- See https://microsoft.github.io/language-server-protocol/s"...
comment
-- "--"
comment_content "- @field formatting_options? lsp.FormattingOptions"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Time in milliseconds to block for formatting requests. No "...
comment
-- "--"
comment_content "- (default: `1000`)"
comment
-- "--"
comment_content "- @field timeout_ms? integer"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Restrict formatting to the clients attached to the given b"...
comment
-- "--"
comment_content "- (default: current buffer)"
comment
-- "--"
comment_content "- @field bufnr? integer"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Predicate used to filter clients. Receives a client as arg"...
comment
-- "--"
comment_content "- return a boolean. Clients matching the predicate are inclu"...
comment
-- "--"
comment_content "- ```lua"
comment
-- "--"
comment_content "- -- Never request typescript-language-server for formatting"
comment
-- "--"
comment_content "- vim.lsp.buf.format {"
comment
-- "--"
comment_content "- filter = function(client) return client.name ~= \"ts_ls\" "...
comment
-- "--"
comment_content "- }"
comment
-- "--"
comment_content "- ```"
comment
-- "--"
comment_content "- @field filter? fun(client: vim.lsp.Client): boolean?"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- If true the method won't block."
comment
-- "--"
comment_content "- Editing the buffer while formatting asynchronous can lead "...
comment
-- "--"
comment_content "- changes."
comment
-- "--"
comment_content "- (Default: false)"
comment
-- "--"
comment_content "- @field async? boolean"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Restrict formatting to the client with ID (client.id) matc"...
comment
-- "--"
comment_content "- @field id? integer"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Restrict formatting to the client with name (client.name) "...
comment
-- "--"
comment_content "- @field name? string"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Range to format."
comment
-- "--"
comment_content "- Table must contain `start` and `end` keys with {row,col} t"...
comment
-- "--"
comment_content "- (1,0) indexing."
comment
-- "--"
comment_content "- Can also be a list of tables that contain `start` and `end"...
comment
-- "--"
comment_content "- in which case `textDocument/rangesFormatting` support is r"...
comment
-- "--"
comment_content "- (Default: current selection in visual mode, `nil` in other"...
comment
-- "--"
comment_content "- formatting the full buffer)"
comment
-- "--"
comment_content "- @field range? {start:[integer,integer],end:[integer, integ"...
comment
-- "--"
comment_content "- Formats a buffer using the attached (and optionally filter"...
comment
-- "--"
comment_content "- server clients."
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- @param opts? vim.lsp.buf.format.Opts"
function_declaration (+769 nodes collapsed)
comment
-- "--"
comment_content "- @class vim.lsp.buf.rename.Opts"
comment
-- "--"
comment_content "- @inlinedoc"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Predicate used to filter clients. Receives a client as arg"...
comment
-- "--"
comment_content "- must return a boolean. Clients matching the predicate are "...
comment
-- "--"
comment_content "- @field filter? fun(client: vim.lsp.Client): boolean?"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Restrict clients used for rename to ones where client.name"...
comment
-- "--"
comment_content "- this field."
comment
-- "--"
comment_content "- @field name? string"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- (default: current buffer)"
comment
-- "--"
comment_content "- @field bufnr? integer"
comment
-- "--"
comment_content "- Renames all references to the symbol under the cursor."
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "-@param new_name string|nil If not provided, the user will b"...
comment
-- "--"
comment_content "- name using |vim.ui.input()|."
comment
-- "--"
comment_content "-@param opts? vim.lsp.buf.rename.Opts Additional options:"
function_declaration (+1113 nodes collapsed)
comment
-- "--"
comment_content "- Lists all the references to the symbol under the cursor in"...
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "-@param context lsp.ReferenceContext? Context for the reques"...
comment
-- "--"
comment_content "-@see https://microsoft.github.io/language-server-protocol/s"...
comment
-- "--"
comment_content "-@param opts? vim.lsp.ListOpts"
function_declaration
function "function"
dot_index_expression
identifier "M"
. "."
identifier "references"
parameters
( "("
identifier "context"
, ","
identifier "opts"
) ")"
block
function_call
identifier "validate"
arguments
( "("
string
' "'"
string_content "context"
' "'"
, ","
identifier "context"
, ","
string
' "'"
string_content "table"
' "'"
, ","
true "true"
) ")"
function_call
identifier "validate"
arguments
( "("
string
' "'"
string_content "opts"
' "'"
, ","
identifier "opts"
, ","
string
' "'"
string_content "table"
' "'"
, ","
true "true"
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "bufnr"
= "="
expression_list
function_call
dot_index_expression
identifier "api"
. "."
identifier "nvim_get_current_buf"
arguments
( "("
) ")"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "win"
= "="
expression_list
function_call
dot_index_expression
identifier "api"
. "."
identifier "nvim_get_current_win"
arguments
( "("
) ")"
assignment_statement
variable_list
identifier "opts"
= "="
expression_list
binary_expression
identifier "opts"
or "or"
table_constructor
{ "{"
} "}"
function_call
dot_index_expression
identifier "lsp"
. "."
identifier "buf_request_all"
arguments
( "("
identifier "bufnr"
, ","
string
' "'"
string_content "textDocument/references"
' "'"
, ","
function_definition (+54 nodes collapsed)
, ","
function_definition
function "function"
parameters
( "("
identifier "results"
) ")"
block
variable_declaration
local "local"
assignment_statement
variable_list
identifier "all_items"
= "="
expression_list
table_constructor
{ "{"
} "}"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "title"
= "="
expression_list
string
' "'"
string_content "References"
' "'"
for_statement (+79 nodes collapsed)
if_statement
if "if"
unary_expression
not "not"
function_call
identifier "next"
arguments
( "("
identifier "all_items"
) ")"
then "then"
block
function_call
dot_index_expression
identifier "vim"
. "."
identifier "notify"
arguments
( "("
string
' "'"
string_content "No references found"
' "'"
) ")"
else_statement
else "else"
block
variable_declaration (+40 nodes collapsed)
if_statement
if "if"
dot_index_expression
identifier "opts"
. "."
identifier "loclist"
then "then"
block (+35 nodes collapsed)
elseif_statement
elseif "elseif"
dot_index_expression
identifier "opts"
. "."
identifier "on_list"
then "then"
block (+32 nodes collapsed)
else_statement (+36 nodes collapsed)
end "end"
end "end"
end "end"
) ")"
end "end"
comment
-- "--"
comment_content "- Lists all symbols in the current buffer in the |location-l"...
comment
-- "--"
comment_content "- @param opts? vim.lsp.ListOpts"
function_declaration (+96 nodes collapsed)
comment
-- "--"
comment_content "- @param client_id integer"
comment
-- "--"
comment_content "- @param method vim.lsp.protocol.Method.ClientToServer.Reque"...
comment
-- "--"
comment_content "- @param params table"
comment
-- "--"
comment_content "- @param handler? lsp.Handler"
comment
-- "--"
comment_content "- @param bufnr? integer"
function_declaration (+92 nodes collapsed)
comment
-- "--"
comment_content "- @param item lsp.TypeHierarchyItem|lsp.CallHierarchyItem"
function_declaration (+64 nodes collapsed)
comment
-- "--"
comment_content "- @alias vim.lsp.buf.HierarchyMethod"
comment
-- "--"
comment_content "- | 'typeHierarchy/subtypes'"
comment
-- "--"
comment_content "- | 'typeHierarchy/supertypes'"
comment
-- "--"
comment_content "- | 'callHierarchy/incomingCalls'"
comment
-- "--"
comment_content "- | 'callHierarchy/outgoingCalls'"
comment
-- "--"
comment_content "- @type table<vim.lsp.buf.HierarchyMethod, 'type' | 'call'>"
variable_declaration (+62 nodes collapsed)
comment
-- "--"
comment_content "- @param method vim.lsp.buf.HierarchyMethod"
function_declaration (+542 nodes collapsed)
comment
-- "--"
comment_content "- Lists all the call sites of the symbol under the cursor in"...
comment
-- "--"
comment_content "- |quickfix| window. If the symbol can resolve to multiple"
comment
-- "--"
comment_content "- items, the user can pick one in the |inputlist()|."
function_declaration
function "function"
dot_index_expression
identifier "M"
. "."
identifier "incoming_calls"
parameters
( "("
) ")"
block
function_call
identifier "hierarchy"
arguments
( "("
string
' "'"
string_content "callHierarchy/incomingCalls"
' "'"
) ")"
end "end"
comment
-- "--"
comment_content "- Lists all the items that are called by the symbol under th"...
comment
-- "--"
comment_content "- cursor in the |quickfix| window. If the symbol can resolve"...
comment
-- "--"
comment_content "- multiple items, the user can pick one in the |inputlist()|"...
function_declaration
function "function"
dot_index_expression
identifier "M"
. "."
identifier "outgoing_calls"
parameters
( "("
) ")"
block
function_call
identifier "hierarchy"
arguments
( "("
string
' "'"
string_content "callHierarchy/outgoingCalls"
' "'"
) ")"
end "end"
comment
-- "--"
comment_content "- Lists all the subtypes or supertypes of the symbol under t"...
comment
-- "--"
comment_content "- cursor in the |quickfix| window. If the symbol can resolve"...
comment
-- "--"
comment_content "- multiple items, the user can pick one using |vim.ui.select"...
comment
-- "--"
comment_content "-@param kind \"subtypes\"|\"supertypes\""
function_declaration (+83 nodes collapsed)
comment
-- "--"
comment_content "- List workspace folders."
comment
-- "--"
comment_content "-"
function_declaration (+97 nodes collapsed)
comment
-- "--"
comment_content "- Add the folder at path to the workspace folders. If {path}"...
comment
-- "--"
comment_content "- not provided, the user will be prompted for a path using |"...
comment
-- "--"
comment_content "- @param workspace_folder? string"
function_declaration (+202 nodes collapsed)
comment
-- "--"
comment_content "- Remove the folder at path from the workspace folders. If"
comment
-- "--"
comment_content "- {path} is not provided, the user will be prompted for"
comment
-- "--"
comment_content "- a path using |input()|."
comment
-- "--"
comment_content "- @param workspace_folder? string"
function_declaration (+172 nodes collapsed)
comment
-- "--"
comment_content "- Lists all symbols in the current workspace in the quickfix"...
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- The list is filtered against {query}; if the argument is o"...
comment
-- "--"
comment_content "- call, the user is prompted to enter a string on the comman"...
comment
-- "--"
comment_content "- string means no filtering is done."
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- @param query string? optional"
comment
-- "--"
comment_content "- @param opts? vim.lsp.ListOpts"
function_declaration (+113 nodes collapsed)
comment
-- "--"
comment_content "- @class vim.lsp.WorkspaceDiagnosticsOpts"
comment
-- "--"
comment_content "- @inlinedoc"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Only request diagnostics from the indicated client. If nil"...
comment
-- "--"
comment_content "- @field client_id? integer"
comment
-- "--"
comment_content "- Request workspace-wide diagnostics."
comment
-- "--"
comment_content "- @param opts? vim.lsp.WorkspaceDiagnosticsOpts"
comment
-- "--"
comment_content "- @see https://microsoft.github.io/language-server-protocol/"...
function_declaration (+47 nodes collapsed)
comment
-- "--"
comment_content "- Send request to the server to resolve document highlights "...
comment
-- "--"
comment_content "- text document position. This request can be triggered by a"...
comment
-- "--"
comment_content "- by events such as `CursorHold`, e.g.:"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- ```vim"
comment
-- "--"
comment_content "- autocmd CursorHold <buffer> lua vim.lsp.buf.document_high"...
comment
-- "--"
comment_content "- autocmd CursorHoldI <buffer> lua vim.lsp.buf.document_high"...
comment
-- "--"
comment_content "- autocmd CursorMoved <buffer> lua vim.lsp.buf.clear_referen"...
comment
-- "--"
comment_content "- ```"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Note: Usage of |vim.lsp.buf.document_highlight()| requires"...
comment
-- "--"
comment_content "- to be defined or you won't be able to see the actual"...
comment
-- "--"
comment_content "- |hl-LspReferenceText|"
comment
-- "--"
comment_content "- |hl-LspReferenceRead|"
comment
-- "--"
comment_content "- |hl-LspReferenceWrite|"
function_declaration (+31 nodes collapsed)
comment
-- "--"
comment_content "- Removes document highlights from current buffer."
function_declaration
function "function"
dot_index_expression
identifier "M"
. "."
identifier "clear_references"
parameters
( "("
) ")"
block
function_call
dot_index_expression
identifier "util"
. "."
identifier "buf_clear_references"
arguments
( "("
) ")"
end "end"
comment
-- "--"
comment_content "-@nodoc"
comment
-- "--"
comment_content "-@class vim.lsp.CodeActionResultEntry"
comment
-- "--"
comment_content "-@field err? lsp.ResponseError"
comment
-- "--"
comment_content "-@field result? (lsp.Command|lsp.CodeAction)[]"
comment
-- "--"
comment_content "-@field context lsp.HandlerContext"
comment
-- "--"
comment_content "- @class vim.lsp.buf.code_action.Opts"
comment
-- "--"
comment_content "- @inlinedoc"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Corresponds to `CodeActionContext` of the LSP specificatio"...
comment
-- "--"
comment_content "- - {diagnostics}? (`table`) LSP `Diagnostic[]`. Inferred "...
comment
-- "--"
comment_content "- position if not provided."
comment
-- "--"
comment_content "- - {only}? (`table`) List of LSP `CodeActionKind`s used t"...
comment
-- "--"
comment_content "- Most language servers support values like `refactor`"
comment
-- "--"
comment_content "- or `quickfix`."
comment
-- "--"
comment_content "- - {triggerKind}? (`integer`) The reason why code actions"...
comment
-- "--"
comment_content "- @field context? lsp.CodeActionContext"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Predicate taking a code action or command and the provider"...
comment
-- "--"
comment_content "- If it returns false, the action is filtered out."
comment
-- "--"
comment_content "- @field filter? fun(x: lsp.CodeAction|lsp.Command, client_i"...
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- When set to `true`, and there is just one remaining action"
comment
-- "--"
comment_content "- (after filtering), the action is applied without user quer"...
comment
-- "--"
comment_content "- @field apply? boolean"
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Range for which code actions should be requested."
comment
-- "--"
comment_content "- If in visual mode this defaults to the active selection."
comment
-- "--"
comment_content "- Table must contain `start` and `end` keys with {row,col} t"...
comment
-- "--"
comment_content "- using mark-like indexing. See |api-indexing|"
comment
-- "--"
comment_content "- @field range? {start: integer[], end: integer[]}"
comment
-- "--"
comment_content "- This is not public because the main extension point is"
comment
-- "--"
comment_content "- vim.ui.select which can be overridden independently."
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- Can't call/use vim.lsp.handlers['textDocument/codeAction']"...
comment
-- "--"
comment_content "- `(err, CodeAction[] | Command[], ctx)`, but we want to agg"...
comment
-- "--"
comment_content "- from multiple clients to have 1 single UI prompt for the u"...
comment
-- "--"
comment_content "- need to be able to link a `CodeAction|Command` to the righ"...
comment
-- "--"
comment_content "- `codeAction/resolve`"
comment
-- "--"
comment_content "-@param results table<integer, vim.lsp.CodeActionResultEntry"...
comment
-- "--"
comment_content "-@param opts? vim.lsp.buf.code_action.Opts"
function_declaration (+1128 nodes collapsed)
comment
-- "--"
comment_content "- Selects a code action (LSP: \"textDocument/codeAction\" requ"...
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "-@param opts? vim.lsp.buf.code_action.Opts"
comment
-- "--"
comment_content "-@see https://microsoft.github.io/language-server-protocol/s"...
comment
-- "--"
comment_content "-@see vim.lsp.protocol.CodeActionTriggerKind"
function_declaration (+746 nodes collapsed)
comment
-- "--"
comment_content "- @deprecated"
comment
-- "--"
comment_content "- Executes an LSP server command."
comment
-- "--"
comment_content "- @param command_params lsp.ExecuteCommandParams"
comment
-- "--"
comment_content "- @see https://microsoft.github.io/language-server-protocol/"...
function_declaration (+122 nodes collapsed)
comment
-- "--"
comment_content "-@type { index: integer, ranges: lsp.Range[] }?"
variable_declaration
local "local"
assignment_statement
variable_list
identifier "selection_ranges"
= "="
expression_list
nil "nil"
comment
-- "--"
comment_content "-@param range lsp.Range"
function_declaration (+225 nodes collapsed)
comment
-- "--"
comment_content "-@param range lsp.Range"
function_declaration (+55 nodes collapsed)
comment
-- "--"
comment_content "- Perform an incremental selection at the cursor position ba"...
comment
-- "--"
comment_content "- `direction` parameter specifies the number of times to exp"...
comment
-- "--"
comment_content "- will shrink the selection."
comment
-- "--"
comment_content "-"
comment
-- "--"
comment_content "- @param direction integer"
comment
-- "--"
comment_content "- @param timeout_ms integer? (default: `1000`) Maximum time "...
function_declaration (+784 nodes collapsed)
return_statement
return "return"
expression_list
identifier "M"