[nvim] Modified fzf-lua provided ui_select

This commit is contained in:
2026-03-26 13:24:01 +02:00
parent b1860c2b03
commit 26d0c65f01

View File

@@ -2,7 +2,24 @@ return
{
-- Configuration function to be run after the plugin is loaded
on_load = function()
require('fzf-lua').register_ui_select()
require('fzf-lua').register_ui_select(function(_,items)
local h = (#items + 2) / vim.o.lines
return {
'ivy',
prompt = '> ',
winopts = {
row=0.50,
col=0.50,
width=0.2,
height=h
},
fzf_opts = {
['--layout'] = 'reverse-list',
['--info'] = 'hidden',
},
}
end)
end,
-- Keymaps to be set after the plugin is loaded