From 56f29733e9da2312b490d9208e01ac83eda11861 Mon Sep 17 00:00:00 2001 From: devleejb Date: Fri, 13 Sep 2024 15:38:38 +0900 Subject: [PATCH] Change the order of vim key binding --- frontend/src/components/editor/Editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/editor/Editor.tsx b/frontend/src/components/editor/Editor.tsx index 64843a66..8c159ca3 100644 --- a/frontend/src/components/editor/Editor.tsx +++ b/frontend/src/components/editor/Editor.tsx @@ -73,10 +73,10 @@ function Editor(props: EditorProps) { const state = EditorState.create({ doc: editorStore.doc.getRoot().content?.toString() ?? "", extensions: [ + configStore.codeKey === CodeKeyType.VIM ? vim() : [], keymap.of(setKeymapConfig()), basicSetup({ highlightSelectionMatches: false }), markdown(), - configStore.codeKey === CodeKeyType.VIM ? vim() : [], themeMode == "light" ? xcodeLight : xcodeDark, EditorView.theme({ "&": { width: "100%" } }), EditorView.lineWrapping,