From cc6f8485fb19fcae89f695c9dc81da89c4a942f9 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 1c6dfe29..7dac4493 100644 --- a/frontend/src/components/editor/Editor.tsx +++ b/frontend/src/components/editor/Editor.tsx @@ -72,10 +72,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, markdown(), - configStore.codeKey === CodeKeyType.VIM ? vim() : [], themeMode == "light" ? xcodeLight : xcodeDark, EditorView.theme({ "&": { width: "100%" } }), EditorView.lineWrapping,