diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 14:21:14 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2026-09-04 14:21:14 +0200 |
| commit | 5199ca2e6527ce83b80898c57a09e984beb1fb67 (patch) | |
| tree | 02b8fde9b465c02e24a14db372c64c457bd151fe /lua/clever_f | |
| parent | f44fed2bbf772b63861077dc25b591faa0e39cd7 (diff) | |
Configure count-preserving mappings
Diffstat (limited to 'lua/clever_f')
| -rw-r--r-- | lua/clever_f/composition_root.lua | 7 |
1 files changed, 6 insertions, 1 deletions
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 |
