File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 11import { autocompletion } from '@codemirror/autocomplete' ;
2- import { defaultKeymap , history , historyKeymap , indentWithTab } from '@codemirror/commands' ;
2+ import {
3+ defaultKeymap ,
4+ history ,
5+ historyKeymap ,
6+ indentWithTab ,
7+ insertTab ,
8+ } from '@codemirror/commands' ;
39import { syntaxHighlighting } from '@codemirror/language' ;
410import type { Extension , StateCommand } from '@codemirror/state' ;
511import { EditorView , EditorViewConfig , keymap , placeholder } from '@codemirror/view' ;
@@ -94,6 +100,7 @@ export function createCodemirror(params: CreateCodemirrorParams) {
94100 return true ;
95101 } ,
96102 } ,
103+ { key : 'Tab' , preventDefault : true , run : insertTab } ,
97104 indentWithTab ,
98105 ...defaultKeymap ,
99106 ...historyKeymap ,
You can’t perform that action at this time.
0 commit comments