aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Roques <ojroques@users.noreply.github.com>2020-12-09 11:19:56 +0100
committerGitHub <noreply@github.com>2020-12-09 11:19:56 +0100
commit222a0452fa4deea3ab914b5f0dbb5c7a405c5033 (patch)
tree9dda2ca722b220008f5ef42cc79ddf967a636f85
parent3974c4bce371f8039da713016c46535d03aeb673 (diff)
downloadrneovim-222a0452fa4deea3ab914b5f0dbb5c7a405c5033.tar.gz
rneovim-222a0452fa4deea3ab914b5f0dbb5c7a405c5033.tar.bz2
rneovim-222a0452fa4deea3ab914b5f0dbb5c7a405c5033.zip
doc: Add missing parameter end_pos for range_formatting (#13481)
-rw-r--r--runtime/doc/lsp.txt3
-rw-r--r--runtime/lua/vim/lsp/buf.lua2
2 files changed, 4 insertions, 1 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index de1b230454..3767b25adb 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -984,6 +984,9 @@ range_formatting({options}, {start_pos}, {end_pos})
Parameters: ~
{options} Table with valid `FormattingOptions` entries.
{start_pos} ({number, number}, optional) mark-indexed
+ position. Defaults to the start of the last
+ visual selection.
+ {end_pos} ({number, number}, optional) mark-indexed
position. Defaults to the end of the last
visual selection.
diff --git a/runtime/lua/vim/lsp/buf.lua b/runtime/lua/vim/lsp/buf.lua
index 61dfb62ab5..00219b6d98 100644
--- a/runtime/lua/vim/lsp/buf.lua
+++ b/runtime/lua/vim/lsp/buf.lua
@@ -149,7 +149,7 @@ end
--@param options Table with valid `FormattingOptions` entries.
--@param start_pos ({number, number}, optional) mark-indexed position.
---Defaults to the start of the last visual selection.
---@param start_pos ({number, number}, optional) mark-indexed position.
+--@param end_pos ({number, number}, optional) mark-indexed position.
---Defaults to the end of the last visual selection.
function M.range_formatting(options, start_pos, end_pos)
validate { options = {options, 't', true} }