Skip to content

Commit 45c7631

Browse files
committed
disable minimap and set theme to dark
1 parent 51aeb98 commit 45c7631

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/core/syntax-highlighting.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ const options = {
6060
lightbulb: { enabled: false },
6161
renderValidationDecorations: "off",
6262
renderWhitespace: "all",
63-
quickSuggestions: false
63+
quickSuggestions: false,
64+
minimap: { enabled: false },
6465
}
6566

6667
export function SyntaxHighlighter({language, className, style, code}) {
@@ -100,6 +101,15 @@ export function SyntaxHighlighter({language, className, style, code}) {
100101
}
101102
}
102103

103-
return (<Editor onMount={handleEditorDidMount} width={width} className={className} options={options}
104-
defaultLanguage={language} defaultValue={code} />);
104+
return (
105+
<Editor
106+
onMount={handleEditorDidMount}
107+
width={width}
108+
theme="vs-dark"
109+
className={className}
110+
options={options}
111+
defaultLanguage={language}
112+
defaultValue={code}
113+
/>
114+
);
105115
}

0 commit comments

Comments
 (0)