mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
docs: do not hardcode LSP version in URL #25648
This commit is contained in:
committed by
GitHub
parent
0892c1cd94
commit
c46a6c065e
@@ -1,4 +1,4 @@
|
||||
--- Grammar for LSP snippets, based on https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#snippet_syntax
|
||||
--- Grammar for LSP snippets, based on https://microsoft.github.io/language-server-protocol/specification/#snippet_syntax
|
||||
|
||||
local lpeg = vim.lpeg
|
||||
local P, S, R, V = lpeg.P, lpeg.S, lpeg.R, lpeg.V
|
||||
|
||||
@@ -159,7 +159,7 @@ end
|
||||
--- - formatting_options (table|nil):
|
||||
--- Can be used to specify FormattingOptions. Some unspecified options will be
|
||||
--- automatically derived from the current Nvim options.
|
||||
--- See https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#formattingOptions
|
||||
--- See https://microsoft.github.io/language-server-protocol/specification/#formattingOptions
|
||||
--- - timeout_ms (integer|nil, default 1000):
|
||||
--- Time in milliseconds to block for formatting requests. No effect if async=true
|
||||
--- - bufnr (number|nil):
|
||||
|
||||
@@ -623,7 +623,7 @@ M[ms.window_showDocument] = function(_, result, ctx, _)
|
||||
return { success = success or false }
|
||||
end
|
||||
|
||||
---@see https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_inlayHint_refresh
|
||||
---@see https://microsoft.github.io/language-server-protocol/specification/#workspace_inlayHint_refresh
|
||||
M[ms.workspace_inlayHint_refresh] = function(err, result, ctx, config)
|
||||
return require('vim.lsp.inlay_hint').on_refresh(err, result, ctx, config)
|
||||
end
|
||||
|
||||
@@ -387,7 +387,7 @@ end
|
||||
---@param lastline integer line to begin search in old_lines for last difference
|
||||
---@param new_lastline integer line to begin search in new_lines for last difference
|
||||
---@param offset_encoding string encoding requested by language server
|
||||
---@return table TextDocumentContentChangeEvent see https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocumentContentChangeEvent
|
||||
---@return table TextDocumentContentChangeEvent see https://microsoft.github.io/language-server-protocol/specification/#textDocumentContentChangeEvent
|
||||
function M.compute_diff(
|
||||
prev_lines,
|
||||
curr_lines,
|
||||
|
||||
@@ -1829,7 +1829,7 @@ do --[[ References ]]
|
||||
---@param bufnr integer Buffer id
|
||||
---@param references table List of `DocumentHighlight` objects to highlight
|
||||
---@param offset_encoding string One of "utf-8", "utf-16", "utf-32".
|
||||
---@see https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocumentContentChangeEvent
|
||||
---@see https://microsoft.github.io/language-server-protocol/specification/#textDocumentContentChangeEvent
|
||||
function M.buf_highlight_references(bufnr, references, offset_encoding)
|
||||
validate({
|
||||
bufnr = { bufnr, 'n', true },
|
||||
|
||||
Reference in New Issue
Block a user