summaryrefslogtreecommitdiff
path: root/helix-term/src/keymap.rs
diff options
context:
space:
mode:
authorGokul Soumya2022-02-03 08:11:25 +0000
committerBlaž Hrastnik2022-02-15 05:04:46 +0000
commit966fbc59849701dc56f70af406444c351bc9f54a (patch)
tree6047bd525c9690461e16e7bc4090212504c58c24 /helix-term/src/keymap.rs
parent14224495378cb9ac0709869ef0c6478fe7475a4c (diff)
Add tree-sitter based function, class navigation
Diffstat (limited to 'helix-term/src/keymap.rs')
-rw-r--r--helix-term/src/keymap.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index fc90da33..f414f797 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -572,11 +572,17 @@ impl Default for Keymaps {
"[" => { "Left bracket"
"d" => goto_prev_diag,
"D" => goto_first_diag,
+ "f" => goto_prev_function,
+ "c" => goto_prev_class,
+ "p" => goto_prev_parameter,
"space" => add_newline_above,
},
"]" => { "Right bracket"
"d" => goto_next_diag,
"D" => goto_last_diag,
+ "f" => goto_next_function,
+ "c" => goto_next_class,
+ "p" => goto_next_parameter,
"space" => add_newline_below,
},