Skip to content

Commit

Permalink
docs(lsp): document alternative for vim.lsp.util.jump_to_location
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaSolOs authored and lewis6991 committed Oct 27, 2024
1 parent f60a1f9 commit 123c0b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion runtime/doc/deprecated.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion runtime/lua/vim/lsp/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 123c0b6

Please sign in to comment.