neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 832459219b4cbf3151e48b43187f1ab0c94ea285
parent 369f58797dbd3c0e18035d26e6f5d6634be7a2a9
Author: Maria José Solano <majosolano99@gmail.com>
Date:   Mon,  7 Aug 2023 06:35:06 -0700

docs(lsp): fix references to protocol.constants #24578


Diffstat:
Mruntime/doc/lsp.txt | 4++--
Mruntime/lua/vim/lsp/buf.lua | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt @@ -1154,7 +1154,7 @@ code_action({options}) *vim.lsp.buf.code_action()* See also: ~ • 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()* 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) See also: ~ - • vim.lsp.protocol.constants.CompletionTriggerKind + • vim.lsp.protocol.CompletionTriggerKind declaration({options}) *vim.lsp.buf.declaration()* Jumps to the declaration of the symbol under the cursor. diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua @@ -112,7 +112,7 @@ end --- about the context in which a completion was triggered (how it was triggered, --- and by which trigger character, if applicable) --- ----@see vim.lsp.protocol.constants.CompletionTriggerKind +---@see vim.lsp.protocol.CompletionTriggerKind function M.completion(context) local params = util.make_position_params() params.context = context @@ -728,7 +728,7 @@ end --- using mark-like indexing. See |api-indexing| --- ---@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) validate({ options = { options, 't', true } }) options = options or {}