mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
docs(lsp): remove outdated offset_encoding default value for apply_text_edits
This commit is contained in:
@@ -1356,8 +1356,7 @@ apply_text_edits({text_edits}, {bufnr}, {offset_encoding})
|
|||||||
Parameters: ~
|
Parameters: ~
|
||||||
{text_edits} table list of `TextEdit` objects
|
{text_edits} table list of `TextEdit` objects
|
||||||
{bufnr} number Buffer id
|
{bufnr} number Buffer id
|
||||||
{offset_encoding} string utf-8|utf-16|utf-32 defaults to
|
{offset_encoding} string utf-8|utf-16|utf-32
|
||||||
encoding of first client of `bufnr`
|
|
||||||
|
|
||||||
See also: ~
|
See also: ~
|
||||||
https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textEdit
|
https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textEdit
|
||||||
|
@@ -360,7 +360,7 @@ end
|
|||||||
--- Applies a list of text edits to a buffer.
|
--- Applies a list of text edits to a buffer.
|
||||||
---@param text_edits table list of `TextEdit` objects
|
---@param text_edits table list of `TextEdit` objects
|
||||||
---@param bufnr number Buffer id
|
---@param bufnr number Buffer id
|
||||||
---@param offset_encoding string utf-8|utf-16|utf-32 defaults to encoding of first client of `bufnr`
|
---@param offset_encoding string utf-8|utf-16|utf-32
|
||||||
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textEdit
|
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textEdit
|
||||||
function M.apply_text_edits(text_edits, bufnr, offset_encoding)
|
function M.apply_text_edits(text_edits, bufnr, offset_encoding)
|
||||||
validate {
|
validate {
|
||||||
|
Reference in New Issue
Block a user