From 19a6e2de158e63264aaa761228a1e3f9d615bd57 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 11 Jun 2024 14:49:09 +0200 Subject: [PATCH] fix(fzf): added action descriptions. (still doesnt work for trouble) --- lua/lazyvim/plugins/extras/editor/fzf.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/lazyvim/plugins/extras/editor/fzf.lua b/lua/lazyvim/plugins/extras/editor/fzf.lua index 4b519202..be6ff83b 100644 --- a/lua/lazyvim/plugins/extras/editor/fzf.lua +++ b/lua/lazyvim/plugins/extras/editor/fzf.lua @@ -39,6 +39,7 @@ return { -- Trouble config.defaults.actions.files["ctrl-t"] = require("trouble.sources.fzf").actions.open + config.set_action_helpstr(config.defaults.actions.files["ctrl-t"].fn, "Open with Trouble") -- Toggle root dir / cwd config.defaults.actions.files["ctrl-r"] = function(_, ctx) @@ -49,6 +50,7 @@ return { LazyVim.pick.open(ctx.__INFO.cmd, o) end config.defaults.actions.files["alt-c"] = config.defaults.actions.files["ctrl-r"] + config.set_action_helpstr(config.defaults.actions.files["ctrl-r"], "Toggle Root/CWD") -- use the same prompt for all local defaults = require("fzf-lua.profiles.default-title")