monaco-vim
monaco-vim copied to clipboard
Cursor style does not change on normal/visual mode.
I'm using @monaco-editor/react and the cursor style does not change in any mode.
The following code is my monaco-vim implementation.
I installed monaco-vim from npm, and I'm using vite + react +typescript.
I may be doing something wrong, so any help is welcome.
// On mount monaco editor
const handleOnMount = (editor: monaco.editor.IStandaloneCodeEditor) => {
initVimMode(editor, document.getElementById("vim-status"));
};
Screenshots:
Normal Mode
Insert mode
@SantiagoBobrik found a fix https://github.com/3rd/tsdiagram/pull/7/commits/e7a1a4aed5594ee06b77ef53ae57b787888ff132