mirror of
https://github.com/neovim/neovim.git
synced 2024-09-17 20:58:20 -04:00
docs(lsp): fix references to protocol.constants #24578
This commit is contained in:
parent
369f58797d
commit
832459219b
@ -1154,7 +1154,7 @@ code_action({options}) *vim.lsp.buf.code_action()*
|
|||||||
|
|
||||||
See also: ~
|
See also: ~
|
||||||
• https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_codeAction
|
• https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_codeAction
|
||||||
• vim.lsp.protocol.constants.CodeActionTriggerKind
|
• vim.lsp.protocol.CodeActionTriggerKind
|
||||||
|
|
||||||
completion({context}) *vim.lsp.buf.completion()*
|
completion({context}) *vim.lsp.buf.completion()*
|
||||||
Retrieves the completion items at the current cursor position. Can only be
|
Retrieves the completion items at the current cursor position. Can only be
|
||||||
@ -1167,7 +1167,7 @@ completion({context}) *vim.lsp.buf.completion()*
|
|||||||
character, if applicable)
|
character, if applicable)
|
||||||
|
|
||||||
See also: ~
|
See also: ~
|
||||||
• vim.lsp.protocol.constants.CompletionTriggerKind
|
• vim.lsp.protocol.CompletionTriggerKind
|
||||||
|
|
||||||
declaration({options}) *vim.lsp.buf.declaration()*
|
declaration({options}) *vim.lsp.buf.declaration()*
|
||||||
Jumps to the declaration of the symbol under the cursor.
|
Jumps to the declaration of the symbol under the cursor.
|
||||||
|
@ -112,7 +112,7 @@ end
|
|||||||
--- about the context in which a completion was triggered (how it was triggered,
|
--- about the context in which a completion was triggered (how it was triggered,
|
||||||
--- and by which trigger character, if applicable)
|
--- and by which trigger character, if applicable)
|
||||||
---
|
---
|
||||||
---@see vim.lsp.protocol.constants.CompletionTriggerKind
|
---@see vim.lsp.protocol.CompletionTriggerKind
|
||||||
function M.completion(context)
|
function M.completion(context)
|
||||||
local params = util.make_position_params()
|
local params = util.make_position_params()
|
||||||
params.context = context
|
params.context = context
|
||||||
@ -728,7 +728,7 @@ end
|
|||||||
--- using mark-like indexing. See |api-indexing|
|
--- using mark-like indexing. See |api-indexing|
|
||||||
---
|
---
|
||||||
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_codeAction
|
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_codeAction
|
||||||
---@see vim.lsp.protocol.constants.CodeActionTriggerKind
|
---@see vim.lsp.protocol.CodeActionTriggerKind
|
||||||
function M.code_action(options)
|
function M.code_action(options)
|
||||||
validate({ options = { options, 't', true } })
|
validate({ options = { options, 't', true } })
|
||||||
options = options or {}
|
options = options or {}
|
||||||
|
Loading…
Reference in New Issue
Block a user