mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 11:39:01 +01:00 
			
		
		
		
	chore(code): reintroduce tab size of 4
This commit is contained in:
		
							parent
							
								
									d29286f9e3
								
							
						
					
					
						commit
						9867cd83c4
					
				| @ -1,6 +1,6 @@ | |||||||
| import { defaultKeymap, indentWithTab } from "@codemirror/commands"; | import { defaultKeymap, indentWithTab } from "@codemirror/commands"; | ||||||
| import { EditorView, keymap, lineNumbers, placeholder, ViewUpdate, type EditorViewConfig, type KeyBinding } from "@codemirror/view"; | import { EditorView, keymap, lineNumbers, placeholder, ViewUpdate, type EditorViewConfig } from "@codemirror/view"; | ||||||
| import { defaultHighlightStyle, StreamLanguage, syntaxHighlighting } from "@codemirror/language"; | import { defaultHighlightStyle, StreamLanguage, syntaxHighlighting, indentUnit } from "@codemirror/language"; | ||||||
| import { Compartment } from "@codemirror/state"; | import { Compartment } from "@codemirror/state"; | ||||||
| import byMimeType from "./syntax_highlighting.js"; | import byMimeType from "./syntax_highlighting.js"; | ||||||
| 
 | 
 | ||||||
| @ -25,7 +25,8 @@ export default class CodeMirror extends EditorView { | |||||||
|             ]), |             ]), | ||||||
|             languageCompartment.of([]), |             languageCompartment.of([]), | ||||||
|             syntaxHighlighting(defaultHighlightStyle), |             syntaxHighlighting(defaultHighlightStyle), | ||||||
|             lineNumbers() |             lineNumbers(), | ||||||
|  |             indentUnit.of(" ".repeat(4)) | ||||||
|         ]; |         ]; | ||||||
| 
 | 
 | ||||||
|         if (Array.isArray(config.extensions)) { |         if (Array.isArray(config.extensions)) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran