added codemirror as an option + removed fallback on defaults

This commit is contained in:
Dsm0
2025-07-10 12:11:10 -07:00
parent d645cc6fe5
commit bf3de368f0
+2 -1
View File
@@ -21,10 +21,11 @@ const vscodeExtension = (options) => [vscodePlugin].concat(options ?? []);
const keymaps = {
vim,
emacs,
codemirror: () => keymap.of(defaultKeymap),
vscode: vscodeExtension,
};
export function keybindings(name) {
const active = keymaps[name];
return [active ? active() : [], keymap.of(historyKeymap), keymap.of(defaultKeymap)];
return [active ? active() : [], keymap.of(historyKeymap)];
}