mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +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 { 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 { highlightSelectionMatches } from "@codemirror/search";
 | 
			
		||||
import { vim } from "@replit/codemirror-vim";
 | 
			
		||||
@@ -40,6 +40,7 @@ export default class CodeMirror extends EditorView {
 | 
			
		||||
            highlightSelectionMatches(),
 | 
			
		||||
            bracketMatching(),
 | 
			
		||||
            lineNumbers(),
 | 
			
		||||
            foldGutter(),
 | 
			
		||||
            indentUnit.of(" ".repeat(4)),
 | 
			
		||||
            keymap.of([
 | 
			
		||||
                ...defaultKeymap,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user