fzf.lua (1877B)
1 return { 2 'ibhagwan/fzf-lua', 3 event = "VeryLazy", 4 dependencies = { 'nvim-tree/nvim-web-devicons' }, 5 keys = { 6 { "<leader>/b", function() require("fzf-lua").buffers() end, desc = "List buffers" }, 7 { "<leader>/c", function() require("fzf-lua").commands() end, desc = "Search commands" }, 8 { "<leader>/C", function() require("fzf-lua").command_history() end, desc = "Search command history" }, 9 { "<leader>/f", function() require("fzf-lua").files() end, desc = "Find files" }, 10 { "<leader>/o", function() require("fzf-lua").oldfiles() end, desc = "Find files" }, 11 { "<leader>/h", function() require("fzf-lua").highlights() end, desc = "Search highlights" }, 12 { "<leader>/M", function() require("fzf-lua").marks() end, desc = "Search marks" }, 13 { "<leader>/k", function() require("fzf-lua").keymaps() end, desc = "Search keymaps" }, 14 { "<leader>/t", function() require("fzf-lua").treesitter() end, desc = "Search treesitter" }, 15 { "<leader>/gf", function() require("fzf-lua").git_files() end, desc = "Find git files" }, 16 { "<leader>/gb", function() require("fzf-lua").git_branches() end, desc = "Search git branches" }, 17 { "<leader>/gc", function() require("fzf-lua").git_commits() end, desc = "Search git commits" }, 18 { "<leader>/gC", function() require("fzf-lua").git_bcommits() end, desc = "Search git buffer commits" }, 19 { "<leader>bc", function() require("fzf-lua").git_bcommits() end, desc = "Search git buffer commits" }, 20 { "<leader>//", function() require("fzf-lua").resume() end, desc = "Resume FZF" }, 21 }, 22 config = function() 23 local fzf = require('fzf-lua') 24 fzf.setup({ 25 keymap = { 26 fzf = { 27 ['CTRL-Q'] = 'select-all+accept', 28 }, 29 }, 30 }) 31 fzf.register_ui_select() 32 end, 33 }