neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 123c0b6b4e2d3f0665774b70b6bec79afbef4509
parent f60a1f90599df0b773a107232f4005d6dea194b0
Author: Maria José Solano <majosolano99@gmail.com>
Date:   Sat, 26 Oct 2024 14:06:15 -0700

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

Diffstat:
Mruntime/doc/deprecated.txt | 3++-
Mruntime/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 @@ -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 @@ -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.