From 5199ca2e6527ce83b80898c57a09e984beb1fb67 Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Fri, 4 Sep 2026 14:21:14 +0200 Subject: Configure count-preserving mappings --- lua/clever_f/composition_root.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lua/clever_f/composition_root.lua') diff --git a/lua/clever_f/composition_root.lua b/lua/clever_f/composition_root.lua index 0ea9675..f9c7a4c 100644 --- a/lua/clever_f/composition_root.lua +++ b/lua/clever_f/composition_root.lua @@ -20,6 +20,11 @@ M.ACTION_NAMES = { "RepeatOppositeDirection", } M.DEFAULT_MAPPING_MODES = { "n", "x", "o" } +M.DEFAULT_MAPPING_OPTIONS = { + silent = true, + remap = false, + preserve_count = true, +} M.DEFAULT_MAPPINGS = { { lhs = "f", action = "StartFindForward" }, { lhs = "F", action = "StartFindBackward" }, @@ -141,7 +146,7 @@ local function register_default_mappings(record, setup) M.DEFAULT_MAPPING_MODES, mapping.lhs, mapping.action, - {} + M.DEFAULT_MAPPING_OPTIONS ) end return registrations -- cgit v1.2.3