aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2024-10-20 23:40:44 +0200
committerGitHub <noreply@github.com>2024-10-20 23:40:44 +0200
commit0083e03d6fa7586d0d6360b40b52b0cab0d2e7ba (patch)
tree4b81b12101025632701174e6de58d9079bf90064 /runtime/lua/vim/lsp/util.lua
parent9b8907d90508d7b66f025bbd1f5a48a78c5ce035 (diff)
downloadrneovim-0083e03d6fa7586d0d6360b40b52b0cab0d2e7ba.tar.gz
rneovim-0083e03d6fa7586d0d6360b40b52b0cab0d2e7ba.tar.bz2
rneovim-0083e03d6fa7586d0d6360b40b52b0cab0d2e7ba.zip
feat(lsp)!: support multiple clients in goto methods (#30877)
Relates to: - https://github.com/neovim/neovim/issues/30034 - https://github.com/neovim/neovim/issues/17712 - https://github.com/neovim/neovim/issues/16363 Closes: - https://github.com/neovim/neovim/issues/26936 (but only provides bufnr and method) - https://github.com/neovim/neovim/issues/22318 Might fix: https://github.com/neovim/neovim/issues/30737
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua9
1 files changed, 2 insertions, 7 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 83c8226326..2c28633e3c 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -1023,18 +1023,13 @@ end
--- Jumps to a location.
---
+---@deprecated
---@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.
---@return boolean `true` if the jump succeeded
function M.jump_to_location(location, offset_encoding, reuse_win)
- if offset_encoding == nil then
- vim.notify_once(
- 'jump_to_location must be called with valid offset encoding',
- vim.log.levels.WARN
- )
- end
-
+ vim.deprecate('vim.lsp.util.jump_to_location', nil, '0.12')
return M.show_document(location, offset_encoding, { reuse_win = reuse_win, focus = true })
end