aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/doc/deprecated.txt3
-rw-r--r--runtime/lua/vim/lsp/util.lua2
2 files changed, 3 insertions, 2 deletions
diff --git a/runtime/doc/deprecated.txt b/runtime/doc/deprecated.txt
index 61666f4fe2..42c4df16e8 100644
--- a/runtime/doc/deprecated.txt
+++ b/runtime/doc/deprecated.txt
@@ -44,7 +44,8 @@ TREESITTER
return the descendant itself.
LSP
-• *vim.lsp.util.jump_to_location*
+• *vim.lsp.util.jump_to_location* Use |vim.lsp.util.show_document()| with
+ `{focus=true}` instead.
• *vim.lsp.buf.execute_command* Use |Client:exec_cmd()| instead.
• *vim.lsp.buf.completion* Use |vim.lsp.completion.trigger()| instead.
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 9646f4d571..41f93e5374 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -957,7 +957,7 @@ end
--- Jumps to a location.
---
----@deprecated
+---@deprecated use `vim.lsp.util.show_document` with `{focus=true}` instead
---@param location lsp.Location|lsp.LocationLink
---@param offset_encoding 'utf-8'|'utf-16'|'utf-32'?
---@param reuse_win boolean? Jump to existing window if buffer is already open.