aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorTom Praschan <13141438+tom-anders@users.noreply.github.com>2024-06-10 03:14:55 +0200
committerGitHub <noreply@github.com>2024-06-09 18:14:55 -0700
commit20f22f75ee629ae2db4cd99e730fa0af26553177 (patch)
tree80467186dba18a1c41247d3d44afa38fa56d3a76 /runtime/doc
parent40329f32d809302196ffd3f47b4d01a1d67f5a9b (diff)
downloadrneovim-20f22f75ee629ae2db4cd99e730fa0af26553177.tar.gz
rneovim-20f22f75ee629ae2db4cd99e730fa0af26553177.tar.bz2
rneovim-20f22f75ee629ae2db4cd99e730fa0af26553177.zip
feat(lsp): include end_col, end_lnum in vim.lsp.buf.locations_to_items #29164
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt2
-rw-r--r--runtime/doc/news.txt1
2 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index 4ddf82706b..ca9dfd0350 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -1983,7 +1983,9 @@ locations_to_items({locations}, {offset_encoding})
(`table[]`) A list of objects with the following fields:
• {filename} (`string`)
• {lnum} (`integer`) 1-indexed line number
+ • {end_lnum} (`integer`) 1-indexed end line number
• {col} (`integer`) 1-indexed column
+ • {end_col} (`integer`) 1-indexed end column
• {text} (`string`)
• {user_data} (`lsp.Location|lsp.LocationLink`)
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index b316cc7b04..2ff6b0302c 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -113,6 +113,7 @@ LSP
• Completion side effects (including snippet expansion, execution of commands
and application of additional text edits) is now built-in.
+• |vim.lsp.util.locations_to_items()| sets `end_col` and `end_lnum` fields.
LUA