refactor: replace ivy layout with large float, hide search input
This commit is contained in:
1 file changed
+13
-1
@@ -54,7 +54,19 @@ local function show_results(results)
|
|||||||
title = cfg.command .. " Results",
|
title = cfg.command .. " Results",
|
||||||
items = items,
|
items = items,
|
||||||
preview = "preview",
|
preview = "preview",
|
||||||
layout = { preset = "ivy" },
|
layout = {
|
||||||
|
hidden = { "input" },
|
||||||
|
layout = {
|
||||||
|
box = "horizontal",
|
||||||
|
width = 0.9,
|
||||||
|
height = 0.9,
|
||||||
|
border = "rounded",
|
||||||
|
title = "{title}",
|
||||||
|
title_pos = "center",
|
||||||
|
{ win = "list", border = "none", width = 0.3 },
|
||||||
|
{ win = "preview", title = "{preview}", border = "left", width = 0.7 },
|
||||||
|
},
|
||||||
|
},
|
||||||
format = function(item)
|
format = function(item)
|
||||||
return { { item.text } }
|
return { { item.text } }
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in new issue
Block a user