[nvim] Modified fzf-lua provided ui_select
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user