mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
docs(lsp): document alternative for vim.lsp.util.jump_to_location
This commit is contained in:

committed by
Lewis Russell

parent
f60a1f9059
commit
123c0b6b4e
@@ -44,7 +44,8 @@ TREESITTER
|
|||||||
return the descendant itself.
|
return the descendant itself.
|
||||||
|
|
||||||
LSP
|
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.execute_command* Use |Client:exec_cmd()| instead.
|
||||||
• *vim.lsp.buf.completion* Use |vim.lsp.completion.trigger()| instead.
|
• *vim.lsp.buf.completion* Use |vim.lsp.completion.trigger()| instead.
|
||||||
|
|
||||||
|
@@ -957,7 +957,7 @@ end
|
|||||||
|
|
||||||
--- Jumps to a location.
|
--- Jumps to a location.
|
||||||
---
|
---
|
||||||
---@deprecated
|
---@deprecated use `vim.lsp.util.show_document` with `{focus=true}` instead
|
||||||
---@param location lsp.Location|lsp.LocationLink
|
---@param location lsp.Location|lsp.LocationLink
|
||||||
---@param offset_encoding 'utf-8'|'utf-16'|'utf-32'?
|
---@param offset_encoding 'utf-8'|'utf-16'|'utf-32'?
|
||||||
---@param reuse_win boolean? Jump to existing window if buffer is already open.
|
---@param reuse_win boolean? Jump to existing window if buffer is already open.
|
||||||
|
Reference in New Issue
Block a user