From e1056f0053b5c7e8e3dbda2776e6519db9ebf83c Mon Sep 17 00:00:00 2001 From: Jeetaditya Chatterjee Date: Thu, 26 May 2022 23:44:39 +0100 Subject: [PATCH] tweak(tree-sitter): rebind conditional nav key Move the conditional bindings from `i` to `v` this is to reflect the text object, the thinking being if users have to learn one anti mnemonic then it should reflect all cases to make it easier to swallow. --- modules/tools/tree-sitter/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tools/tree-sitter/config.el b/modules/tools/tree-sitter/config.el index aab52e2cb..a0ff3a3c0 100644 --- a/modules/tools/tree-sitter/config.el +++ b/modules/tools/tree-sitter/config.el @@ -47,7 +47,7 @@ "F" (+tree-sitter-goto-textobj "call.outer" t) "C" (+tree-sitter-goto-textobj "class.outer" t) "c" (+tree-sitter-goto-textobj "comment.outer" t) - "i" (+tree-sitter-goto-textobj "conditional.outer" t) + "v" (+tree-sitter-goto-textobj "conditional.outer" t) "l" (+tree-sitter-goto-textobj "loop.outer" t)) (:map +tree-sitter-goto-next-map "a" (+tree-sitter-goto-textobj "parameter.outer") @@ -55,7 +55,7 @@ "F" (+tree-sitter-goto-textobj "call.outer") "C" (+tree-sitter-goto-textobj "class.outer") "c" (+tree-sitter-goto-textobj "comment.outer") - "i" (+tree-sitter-goto-textobj "conditional.outer") + "v" (+tree-sitter-goto-textobj "conditional.outer") "l" (+tree-sitter-goto-textobj "loop.outer")))