fn
compileKeymaps
Merge ordered keymaps into a single normalized lookup. Earlier keymaps win, so
pass user overrides before the defaults: compileKeymaps([user, defaults], …).
Signature
ts
export function compileKeymaps(keymaps: readonly Keymap[], platform: Platform): Map<string, Command>{ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
keymaps | readonly Keymap[] | — |
platform | Platform | — |
Returns
Map<string, Command>