aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs4
-rw-r--r--helix-term/src/keymap.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 45ab7659..0052b43e 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -3965,7 +3965,7 @@ fn select_textobject(cx: &mut Context, objtype: textobject::TextObject) {
'W' => textobject::textobject_word(text, range, objtype, count, true),
'c' => textobject_treesitter("class", range),
'f' => textobject_treesitter("function", range),
- 'p' => textobject_treesitter("parameter", range),
+ 'a' => textobject_treesitter("parameter", range),
'o' => textobject_treesitter("comment", range),
'm' => {
let ch = text.char(range.cursor(text));
@@ -3999,7 +3999,7 @@ fn select_textobject(cx: &mut Context, objtype: textobject::TextObject) {
("W", "WORD"),
("c", "Class (tree-sitter)"),
("f", "Function (tree-sitter)"),
- ("p", "Parameter (tree-sitter)"),
+ ("a", "Argument/parameter (tree-sitter)"),
("o", "Comment (tree-sitter)"),
("m", "Matching delimiter under cursor"),
(" ", "... or any character acting as a pair"),
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index a5a615f3..a203b4e2 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -607,7 +607,7 @@ impl Default for Keymaps {
"D" => goto_first_diag,
"f" => goto_prev_function,
"c" => goto_prev_class,
- "p" => goto_prev_parameter,
+ "a" => goto_prev_parameter,
"o" => goto_prev_comment,
"space" => add_newline_above,
},
@@ -616,7 +616,7 @@ impl Default for Keymaps {
"D" => goto_last_diag,
"f" => goto_next_function,
"c" => goto_next_class,
- "p" => goto_next_parameter,
+ "a" => goto_next_parameter,
"o" => goto_next_comment,
"space" => add_newline_below,
},