From 33d566430c32905708c5b77cdfb104fa52938b8d Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sat, 25 Jan 2025 17:45:03 -0500 Subject: [PATCH] AutoYADM commit: 2025-01-25 17:45:03 --- .config/nvim/lua/plugins/fzflua.lua | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.config/nvim/lua/plugins/fzflua.lua b/.config/nvim/lua/plugins/fzflua.lua index a5673d22..0354b694 100644 --- a/.config/nvim/lua/plugins/fzflua.lua +++ b/.config/nvim/lua/plugins/fzflua.lua @@ -1,12 +1,23 @@ return { "ibhagwan/fzf-lua", - opts = { - files = { - cwd_prompt = false, - find_opts = [[-type f -not -path '*/\.git/*']], - rg_opts = [[--color=never --files -g "!.git"]], - fd_opts = [[--color=never --type f --type l --exclude .git]], - }, - -- fzf_colors = true, - }, + opts = function() + local actions = require("fzf-lua").actions + return { + actions = { + ["default"] = actions.file_edit, + ["ctrl-s"] = actions.file_split, + ["ctrl-v"] = actions.file_vsplit, + ["ctrl-t"] = actions.file_tabedit, + ["alt-q"] = actions.file_sel_to_qf, + ["ctrl-p"] = actions.paste_register, + }, + files = { + cwd_prompt = false, + find_opts = [[-type f -not -path '*/\.git/*']], + rg_opts = [[--color=never --files -g "!.git"]], + fd_opts = [[--color=never --type f --type l --exclude .git]], + }, + -- fzf_colors = true, + } + end, }