diff --git a/src/components/code-editor.tsx b/src/components/code-editor.tsx index 1119300..c2e1f1b 100644 --- a/src/components/code-editor.tsx +++ b/src/components/code-editor.tsx @@ -5,12 +5,12 @@ import dynamic from "next/dynamic"; import { useTheme } from "next-themes"; import normalizeUrl from "normalize-url"; import { highlighter } from "@/lib/shiki"; -import { DEFAULT_PATH } from "@/config/path"; -import { DEFAULT_VALUE } from "@/config/value"; import { shikiToMonaco } from "@shikijs/monaco"; import { Skeleton } from "@/components/ui/skeleton"; import { CODE_EDITOR_OPTIONS } from "@/constants/option"; -import { SUPPORTED_LANGUAGE_SERVERS } from "@/config/language-server"; +import { DEFAULT_EDITOR_PATH } from "@/config/editor/path"; +import { DEFAULT_EDITOR_VALUE } from "@/config/editor/value"; +import { SUPPORTED_LANGUAGE_SERVERS } from "@/config/lsp/language-server"; import { useCodeEditorOption, useCodeEditorState } from "@/store/useCodeEditor"; import { toSocket, WebSocketMessageReader, WebSocketMessageWriter } from "vscode-ws-jsonrpc"; @@ -100,8 +100,8 @@ export default function CodeEditor() { return ( ((set) => ({ editor: null, - language: DEFAULT_LANGUAGE, + language: DEFAULT_EDITOR_LANGUAGE, languageClient: null, setEditor: (editor) => set({ editor }), setLanguage: (language) => set({ language }),