feat(plugins): add fzf-lua

This commit is contained in:
2025-02-17 21:33:36 +01:00
parent 0895ff44af
commit ab443628f3
2 changed files with 58 additions and 21 deletions

36
lua/409/plugins/fzf.lua Normal file
View File

@@ -0,0 +1,36 @@
return {
{
"ibhagwan/fzf-lua",
-- optional for icon support
dependencies = { "nvim-tree/nvim-web-devicons" },
-- or if using mini.icons/mini.nvim
-- dependencies = { "echasnovski/mini.icons" },
lazy = false,
opts = {
hls = {
border = "FloatBorder",
preview_border = "FloatBorder",
header_text = "Function",
},
winopts = {
border = "single",
preview = {
border = "single",
},
},
fzf_opts = {
["--layout"] = "reverse-list",
},
},
keys = {
{
"<leader>ca",
":FzfLua lsp_code_actions<CR>",
desc = "Code actions (Preview)",
},
},
config = function(_, opts)
require("fzf-lua").setup(opts)
end,
},
}