finish easy formats

This commit is contained in:
SArpnt 2023-12-25 17:00:15 -05:00
parent 35e36c9aa3
commit 386c90ffcd
Signed by: SArpnt
SSH key fingerprint: SHA256:wyRI40FXp6te9QA9r2OFJf+DtCZQmqZFNTj7EV6aMDA
2 changed files with 2 additions and 3 deletions

View file

@ -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

View file

@ -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,