mirror of
https://codeberg.org/uzu/strudel
synced 2026-09-07 23:30:45 -04:00
Exposing Vim from codemirror-vim
Docs for adding keybindings Only expose Vim from keybindings
This commit is contained in:
@@ -4,3 +4,4 @@ export * from './flash.mjs';
|
||||
export * from './slider.mjs';
|
||||
export * from './themes.mjs';
|
||||
export * from './widget.mjs';
|
||||
export { Vim } from './keybindings.mjs';
|
||||
|
||||
@@ -131,6 +131,8 @@ const keymaps = {
|
||||
vscode: vscodeExtension,
|
||||
};
|
||||
|
||||
export { Vim } from '@replit/codemirror-vim';
|
||||
|
||||
export function keybindings(name) {
|
||||
const active = keymaps[name];
|
||||
const extensions = active ? [Prec.high(active())] : [];
|
||||
|
||||
Reference in New Issue
Block a user