diff options
author | Maria José Solano <majosolano99@gmail.com> | 2024-10-26 14:06:15 -0700 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-10-27 09:26:52 +0000 |
commit | 123c0b6b4e2d3f0665774b70b6bec79afbef4509 (patch) | |
tree | b4532cef99255765ed58ebbabcd9cce123471258 | |
parent | f60a1f90599df0b773a107232f4005d6dea194b0 (diff) | |
download | rneovim-123c0b6b4e2d3f0665774b70b6bec79afbef4509.tar.gz rneovim-123c0b6b4e2d3f0665774b70b6bec79afbef4509.tar.bz2 rneovim-123c0b6b4e2d3f0665774b70b6bec79afbef4509.zip |
docs(lsp): document alternative for vim.lsp.util.jump_to_location
-rw-r--r-- | runtime/doc/deprecated.txt | 3 | ||||
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 2 |
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. |