diff --git a/helix-term/src/commands/engine.rs b/helix-term/src/commands/engine.rs index 4eff04862..93c06a328 100644 --- a/helix-term/src/commands/engine.rs +++ b/helix-term/src/commands/engine.rs @@ -67,7 +67,8 @@ impl ScriptingEngine { pub fn get_keybindings() -> Option> { let mut map = HashMap::new(); - for kind in PLUGIN_PRECEDENCE { + // Overlay these in reverse, so the precedence applies correctly + for kind in PLUGIN_PRECEDENCE.iter().rev() { if let Some(keybindings) = manual_dispatch!(kind, get_keybindings()) { map.extend(keybindings); }