mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-06-04 11:44:21 +00:00
fix(lsp.definitions): compare file uri with targetUri (#2514)
(cherry picked from commit 233cd6ad0d)
This commit is contained in:
@@ -165,7 +165,8 @@ local function list_or_jump(action, title, opts)
|
||||
if #flattened_results == 0 then
|
||||
return
|
||||
elseif #flattened_results == 1 and opts.jump_type ~= "never" then
|
||||
if params.textDocument.uri ~= flattened_results[1].uri then
|
||||
local uri = params.textDocument.uri
|
||||
if uri ~= flattened_results[1].uri and uri ~= flattened_results[1].targetUri then
|
||||
if opts.jump_type == "tab" then
|
||||
vim.cmd "tabedit"
|
||||
elseif opts.jump_type == "split" then
|
||||
|
||||
Reference in New Issue
Block a user