Skip to content

Commit

Permalink
Expose Vim editor extension object for user scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Dec 11, 2023
1 parent 164aaa2 commit b7fabe1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets/js/hooks/cell_editor/live_editor.js
Expand Up @@ -8,9 +8,12 @@ import RemoteUser from "./live_editor/remote_user";
import { replacedSuffixLength } from "../../lib/text_utils";
import { settingsStore } from "../../lib/settings";
import Doctest from "./live_editor/doctest";
import { initVimMode } from "monaco-vim";
import { initVimMode, VimMode } from "monaco-vim";
import { EmacsExtension, unregisterKey } from "monaco-emacs";

// Expose the Vim extension for customization
window.unstable_monacoExtensions = { VimMode };

/**
* Mounts cell source editor with real-time collaboration mechanism.
*/
Expand Down

0 comments on commit b7fabe1

Please sign in to comment.