return { 'ibhagwan/fzf-lua', event = "VeryLazy", dependencies = { 'nvim-tree/nvim-web-devicons' }, keys = { { "/c", function() require("fzf-lua").commands() end, desc = "search commands" }, { "/C", function() require("fzf-lua").command_history() end, desc = "search command history" }, { "/f", function() require("fzf-lua").files() end, desc = "search old files" }, { "/h", function() require("fzf-lua").highlights() end, desc = "search highlights" }, { "/M", function() require("fzf-lua").marks() end, desc = "search marks" }, { "/k", function() require("fzf-lua").keymaps() end, desc = "search keymaps" }, { "//", function() require("fzf-lua").live_grep() end, desc = "live grep" }, { "/gf", function() require("fzf-lua").git_files() end, desc = "search git file names" }, { "/gb", function() require("fzf-lua").git_branches() end, desc = "search git branches" }, { "/gc", function() require("fzf-lua").git_commits() end, desc = "search git commits" }, { "/gC", function() require("fzf-lua").git_bcommits() end, desc = "search git buffer commits" }, { "/r", function() require("fzf-lua").resume() end, desc = "resume fzf" }, }, config = function() local fzf = require('fzf-lua') fzf.setup({ keymap = { fzf = { ['CTRL-Q'] = 'select-all+accept', }, }, }) fzf.register_ui_select() require("utils.remaps").map_virtual({ { "/", group = "fzf", icon = { icon = "󰮫", hl = "Constant" } }, { "/g", group = "git", icon = { icon = "", hl = "Boolean" } }, }) end, }