aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorlvimuser <109605931+lvimuser@users.noreply.github.com>2022-10-08 05:22:25 -0300
committerGitHub <noreply@github.com>2022-10-08 10:22:25 +0200
commit0773a9ee3a21db54cd6b2376dd2e087bc09d5ea1 (patch)
treebd41979a0da6a0b0f5043620633d514111510557 /runtime/doc
parentcfdb4cbada8c65aa57e69776bcc0f7b8b298317a (diff)
downloadrneovim-0773a9ee3a21db54cd6b2376dd2e087bc09d5ea1.tar.gz
rneovim-0773a9ee3a21db54cd6b2376dd2e087bc09d5ea1.tar.bz2
rneovim-0773a9ee3a21db54cd6b2376dd2e087bc09d5ea1.zip
feat(lsp): support window/showDocument (#19977)
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lsp.txt23
1 files changed, 20 insertions, 3 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index ae969491f7..139f4c6bc5 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -190,6 +190,7 @@ specification. These LSP requests/notifications are defined by default:
textDocument/typeDefinition*
window/logMessage
window/showMessage
+ window/showDocument
window/showMessageRequest
workspace/applyEdit
workspace/symbol
@@ -1499,12 +1500,12 @@ jump_to_location({location}, {offset_encoding}, {reuse_win})
Parameters: ~
• {location} (table) (`Location`|`LocationLink`)
- • {offset_encoding} (string) utf-8|utf-16|utf-32 (required)
+ • {offset_encoding} "utf-8" | "utf-16" | "utf-32"
• {reuse_win} (boolean) Jump to existing window if buffer is
- already opened.
+ already open.
Return: ~
- `true` if the jump succeeded
+ (boolean) `true` if the jump succeeded
*vim.lsp.util.locations_to_items()*
locations_to_items({locations}, {offset_encoding})
@@ -1715,6 +1716,22 @@ set_lines({lines}, {A}, {B}, {new_lines}) *vim.lsp.util.set_lines()*
Return: ~
(table) The modified {lines} object
+ *vim.lsp.util.show_document()*
+show_document({location}, {offset_encoding}, {opts})
+ Shows document and optionally jumps to the location.
+
+ Parameters: ~
+ • {location} (table) (`Location`|`LocationLink`)
+ • {offset_encoding} "utf-8" | "utf-16" | "utf-32"
+ • {opts} (table) options
+ • reuse_win (boolean) Jump to existing window if
+ buffer is already open.
+ • focus (boolean) Whether to focus/jump to location
+ if possible. Defaults to true.
+
+ Return: ~
+ (boolean) `true` if succeeded
+
*vim.lsp.util.stylize_markdown()*
stylize_markdown({bufnr}, {contents}, {opts})
Converts markdown into syntax highlighted regions by stripping the code