Exposing Vim from codemirror-vim

Docs for adding keybindings

Only expose Vim from keybindings
This commit is contained in:
John Björk 2025-12-06 19:54:33 +01:00
parent 0a2f2eaa3d
commit a9752fb2a4
No known key found for this signature in database
GPG key ID: 303B6ADF2F569B0A
3 changed files with 24 additions and 0 deletions

View file

@ -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())] : [];