fix(builtin.lsp): bad check for jump_type option (#2991)

(cherry picked from commit c816406bd5)
This commit is contained in:
James Trew
2024-03-18 11:39:57 -04:00
committed by Simon Hauser
parent 6d61c905ee
commit 48960a8164
+4 -7
View File
@@ -178,14 +178,11 @@ local function list_or_jump(action, title, opts)
cmd = "vnew"
elseif opts.jump_type == "tab drop" then
cmd = "tab drop"
else
utils.notify(
"list_or_jump",
{ msg = string.format("Invalid jump_type for %s picker", title), level = "ERROR" }
)
return
end
vim.cmd(string.format("%s %s", cmd, file_path))
if cmd then
vim.cmd(string.format("%s %s", cmd, file_path))
end
end
vim.lsp.util.jump_to_location(flattened_results[1], offset_encoding)
else