fix(builtin.lsp): bad check for jump_type option (#2991)
This commit is contained in:
@@ -165,15 +165,12 @@ local function list_or_jump(action, title, params, opts)
|
|||||||
cmd = "vnew"
|
cmd = "vnew"
|
||||||
elseif opts.jump_type == "tab drop" then
|
elseif opts.jump_type == "tab drop" then
|
||||||
cmd = "tab drop"
|
cmd = "tab drop"
|
||||||
else
|
|
||||||
utils.notify(
|
|
||||||
"list_or_jump",
|
|
||||||
{ msg = string.format("Invalid jump_type for %s picker", title), level = "ERROR" }
|
|
||||||
)
|
|
||||||
return
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if cmd then
|
||||||
vim.cmd(string.format("%s %s", cmd, file_path))
|
vim.cmd(string.format("%s %s", cmd, file_path))
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
vim.lsp.util.jump_to_location(flattened_results[1], offset_encoding, opts.reuse_win)
|
vim.lsp.util.jump_to_location(flattened_results[1], offset_encoding, opts.reuse_win)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user