docs(lsp): document alternative for vim.lsp.util.jump_to_location

This commit is contained in:
Maria José Solano
2024-10-26 14:06:15 -07:00
committed by Lewis Russell
parent f60a1f9059
commit 123c0b6b4e
2 changed files with 3 additions and 2 deletions

View File

@@ -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.

View File

@@ -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.