local M = { "ibhagwan/fzf-lua", dev = require("utils").is_dev("fzf-lua") } function M.init() require("plugins.fzf-lua.mappings") end function M.config() require("plugins.fzf-lua.cmds") require("plugins.fzf-lua.setup").setup() -- register fzf-lua as vim.ui.select interface require("fzf-lua").register_ui_select(function(_, items) local min_h, max_h = 0.15, 0.70 local h = (#items + 4) / vim.o.lines if h < min_h then h = min_h elseif h > max_h then h = max_h end return { winopts = { height = h, width = 0.60, row = 0.40 } } end) end return M