summaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs2
-rw-r--r--helix-term/src/keymap.rs8
2 files changed, 8 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 353d79cc..98e79b44 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -846,6 +846,8 @@ pub fn exit_select_mode(cx: &mut Context) {
cx.doc().mode = Mode::Normal;
}
+pub fn goto_definition(cx: &mut Context) {}
+
// NOTE: Transactions in this module get appended to history when we switch back to normal mode.
pub mod insert {
use super::*;
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,
),
)
}