diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index 9347ebbc9..014fc11e7 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -272,6 +272,15 @@ impl<'de> serde::de::Visitor<'de> for KeyTrieVisitor { doc: label, })) } + + // To label/name macro commands from config + Some(MappableCommand::Macro { keys, .. }) if !label.is_empty() => { + Ok(KeyTrie::MappableCommand(MappableCommand::Macro { + keys, + name: label + })) + } + Some(command) => Ok(KeyTrie::MappableCommand(command)), } Some(commands) => {