({
insertModeKeyBindings,
normalModeKeyBindings,
normalModeKeyBindingsNonRecursive,
visualModeKeyBindings,
}: {
insertModeKeyBindings?: IKeyRemapping[];
normalModeKeyBindings?: IKeyRemapping[];
normalModeKeyBindingsNonRecursive?: IKeyRemapping[];
visualModeKeyBindings?: IKeyRemapping[];
})
| 92 | } |
| 93 | |
| 94 | const setupWithBindings = async ({ |
| 95 | insertModeKeyBindings, |
| 96 | normalModeKeyBindings, |
| 97 | normalModeKeyBindingsNonRecursive, |
| 98 | visualModeKeyBindings, |
| 99 | }: { |
| 100 | insertModeKeyBindings?: IKeyRemapping[]; |
| 101 | normalModeKeyBindings?: IKeyRemapping[]; |
| 102 | normalModeKeyBindingsNonRecursive?: IKeyRemapping[]; |
| 103 | visualModeKeyBindings?: IKeyRemapping[]; |
| 104 | }) => { |
| 105 | await setupWorkspace({ |
| 106 | config: { |
| 107 | leader: leaderKey, |
| 108 | insertModeKeyBindings: insertModeKeyBindings || [], |
| 109 | normalModeKeyBindings: normalModeKeyBindings || [], |
| 110 | normalModeKeyBindingsNonRecursive: normalModeKeyBindingsNonRecursive || [], |
| 111 | visualModeKeyBindings: visualModeKeyBindings || [], |
| 112 | }, |
| 113 | }); |
| 114 | modeHandler = (await getAndUpdateModeHandler())!; |
| 115 | vimState = modeHandler.vimState; |
| 116 | }; |
| 117 | |
| 118 | test('getLongestedRemappedKeySequence', async () => { |
| 119 | // setup |
no test coverage detected