finish easy formats
This commit is contained in:
parent
35e36c9aa3
commit
386c90ffcd
2 changed files with 2 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
|||
printWidth: 100,
|
||||
useTabs: true,
|
||||
tabWidth: 3,
|
||||
// TODO prevent if/for/while without braces
|
||||
arrowParens: "avoid",
|
||||
embeddedLanguageFormatting: "off",
|
||||
// TODO disable formatting css, even in html/pug
|
||||
|
|
|
@ -17,9 +17,7 @@ export default function createCodemirror(inputListener) {
|
|||
{ key: "Enter", run: insertNewline },
|
||||
{
|
||||
key: "Tab",
|
||||
run: ({ state, dispatch }) => (
|
||||
dispatch(state.replaceSelection("\t")), true
|
||||
),
|
||||
run: ({ state, dispatch }) => (dispatch(state.replaceSelection("\t")), true),
|
||||
shift: indentLess,
|
||||
},
|
||||
...searchKeymap,
|
||||
|
|
Loading…
Reference in a new issue