treewide: add global flag to disable default keymaps

This commit is contained in:
Ching Pei Yang 2025-07-24 15:41:10 +02:00
commit 9902836a90
No known key found for this signature in database
GPG key ID: B3841364253DC4C8
31 changed files with 170 additions and 165 deletions

View file

@ -12,10 +12,10 @@ in {
enable = mkEnableOption "treesitter, also enabled automatically through language options";
mappings.incrementalSelection = {
init = mkMappingOption "Init selection [treesitter]" "gnn";
incrementByNode = mkMappingOption "Increment selection by node [treesitter]" "grn";
incrementByScope = mkMappingOption "Increment selection by scope [treesitter]" "grc";
decrementByNode = mkMappingOption "Decrement selection by node [treesitter]" "grm";
init = mkMappingOption config.vim.enableNvfKeymaps "Init selection [treesitter]" "gnn";
incrementByNode = mkMappingOption config.vim.enableNvfKeymaps "Increment selection by node [treesitter]" "grn";
incrementByScope = mkMappingOption config.vim.enableNvfKeymaps "Increment selection by scope [treesitter]" "grc";
decrementByNode = mkMappingOption config.vim.enableNvfKeymaps "Decrement selection by node [treesitter]" "grm";
};
fold = mkEnableOption "fold with treesitter";