monaco-vim icon indicating copy to clipboard operation
monaco-vim copied to clipboard

Cursor style does not change on normal/visual mode.

Open SantiagoBobrik opened this issue 1 year ago • 1 comments

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 image

Insert mode image

SantiagoBobrik avatar Nov 30 '23 23:11 SantiagoBobrik

@SantiagoBobrik found a fix https://github.com/3rd/tsdiagram/pull/7/commits/e7a1a4aed5594ee06b77ef53ae57b787888ff132

3rd avatar Dec 13 '23 07:12 3rd