Closed x1unix closed 3 months ago
@x1unix I think the following method is simpler, won't increase complexity, and won't increase the size.
<CodeMirror
value="console.log('hello world!');"
height="200px"
basicSetup={{
lineNumbers: false
}}
extensions={[
lineNumbers({
///...
})
]}
/>
@jaywcjlove will including extension that already present in basic setup work?
A lot of extensions used in
@uiw/codemirror-extensions-basic-setup
support configuration, for examplelineNumbers
extension.This is useful when some extra event handler needs to be defined for gutter or in any other customisation case. Can you please update
BasicSetupOptions
to accept them?Thanks.