(config: FormatConfig)
| 178 | } |
| 179 | |
| 180 | function leaderDisplay(config: FormatConfig) { |
| 181 | const key = config.keybinds.get(LEADER_TOKEN)?.[0]?.key |
| 182 | if (!key) return TuiKeybind.LeaderDefault |
| 183 | return typeof key === "string" ? key : stringifyKeyStroke(key) |
| 184 | } |
| 185 | |
| 186 | function leaderKey(config: FormatConfig) { |
| 187 | return config.keybinds.get(LEADER_TOKEN)?.[0]?.key |