aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/keymap.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-16 14:09:04 +0000
committerGitHub2021-03-16 14:09:04 +0000
commit8dc0b18e35cdfdd76f435dcd43c1cfd5a3f0c7f7 (patch)
treea26c6025d45658b4d85d6917ea82489d6ba8fb2e /helix-term/src/keymap.rs
parentd8599f3a140eca7cd14f47e9b64f1ae9d829a0eb (diff)
parente3ec5e31ec005e33da4c848b4272e81a6d21a5f0 (diff)
Merge pull request #8 from helix-editor/gd
Goto
Diffstat (limited to 'helix-term/src/keymap.rs')
-rw-r--r--helix-term/src/keymap.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index 67490003..d9fe348f 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -311,8 +311,12 @@ pub fn default() -> Keymaps {
code: KeyCode::Esc,
modifiers: Modifiers::NONE
} => commands::normal_mode as Command,
- key!('g') => commands::move_file_start as Command,
- key!('e') => commands::move_file_end as Command,
+ key!('g') => commands::move_file_start,
+ key!('e') => commands::move_file_end,
+ key!('d') => commands::goto_definition,
+ key!('t') => commands::goto_type_definition,
+ key!('r') => commands::goto_reference,
+ key!('i') => commands::goto_implementation,
),
)
}