Exposing Vim from codemirror-vim
Docs for adding keybindings Only expose Vim from keybindings
This commit is contained in:
parent
0a2f2eaa3d
commit
a9752fb2a4
3 changed files with 24 additions and 0 deletions
|
|
@ -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())] : [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue