mirror of
https://github.com/heyman/heynote.git
synced 2024-11-26 01:44:05 +01:00
Turn on line wrapping
This commit is contained in:
parent
b1e46e2b96
commit
e21ec44556
@ -1,5 +1,5 @@
|
||||
import { lineNumbers, highlightActiveLineGutter, highlightSpecialChars, drawSelection, dropCursor, rectangularSelection, crosshairCursor, highlightActiveLine, keymap } from '@codemirror/view';
|
||||
export { EditorView } from '@codemirror/view';
|
||||
import { EditorView } from '@codemirror/view';
|
||||
import { EditorState } from '@codemirror/state';
|
||||
import { foldGutter, indentOnInput, syntaxHighlighting, defaultHighlightStyle, bracketMatching, foldKeymap } from '@codemirror/language';
|
||||
import { history, defaultKeymap, historyKeymap } from '@codemirror/commands';
|
||||
@ -64,6 +64,7 @@ const customSetup = /*@__PURE__*/(() => [
|
||||
crosshairCursor(),
|
||||
highlightActiveLine(),
|
||||
highlightSelectionMatches(),
|
||||
EditorView.lineWrapping,
|
||||
keymap.of([
|
||||
...closeBracketsKeymap,
|
||||
...defaultKeymap,
|
||||
|
Loading…
Reference in New Issue
Block a user