mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	chore(code): introduce fold gutter
This commit is contained in:
		| @@ -1,6 +1,6 @@ | |||||||
| import { defaultKeymap, history, historyKeymap, indentWithTab } from "@codemirror/commands"; | import { defaultKeymap, history, historyKeymap, indentWithTab } from "@codemirror/commands"; | ||||||
| import { EditorView, highlightActiveLine, keymap, lineNumbers, placeholder, ViewUpdate, type EditorViewConfig } from "@codemirror/view"; | import { EditorView, highlightActiveLine, keymap, lineNumbers, placeholder, ViewUpdate, type EditorViewConfig } from "@codemirror/view"; | ||||||
| import { defaultHighlightStyle, StreamLanguage, syntaxHighlighting, indentUnit, bracketMatching } from "@codemirror/language"; | import { defaultHighlightStyle, StreamLanguage, syntaxHighlighting, indentUnit, bracketMatching, foldGutter } from "@codemirror/language"; | ||||||
| import { Compartment, type Extension } from "@codemirror/state"; | import { Compartment, type Extension } from "@codemirror/state"; | ||||||
| import { highlightSelectionMatches } from "@codemirror/search"; | import { highlightSelectionMatches } from "@codemirror/search"; | ||||||
| import { vim } from "@replit/codemirror-vim"; | import { vim } from "@replit/codemirror-vim"; | ||||||
| @@ -40,6 +40,7 @@ export default class CodeMirror extends EditorView { | |||||||
|             highlightSelectionMatches(), |             highlightSelectionMatches(), | ||||||
|             bracketMatching(), |             bracketMatching(), | ||||||
|             lineNumbers(), |             lineNumbers(), | ||||||
|  |             foldGutter(), | ||||||
|             indentUnit.of(" ".repeat(4)), |             indentUnit.of(" ".repeat(4)), | ||||||
|             keymap.of([ |             keymap.of([ | ||||||
|                 ...defaultKeymap, |                 ...defaultKeymap, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user