Skip to content

Commit

Permalink
Addressing keesschollaart81#26 (indentation and other default YAML ed…
Browse files Browse the repository at this point in the history
…itor behaviour)
  • Loading branch information
keesschollaart81 committed May 10, 2019
1 parent 227d38a commit b302ccb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,19 @@
"scopeName": "source.yaml",
"path": "./yaml-language/yaml.tmLanguage.json"
}
]
],
"configurationDefaults": {
"[home-assistant]": {
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": true
},
"editor.autoIndent": false
}
}
},
"scripts": {
"compile": "tsc -p ./",
Expand Down
6 changes: 5 additions & 1 deletion yaml-language/language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
["'", "'"]
],
"folding": {
"offSide": true
"offSide": true,
"markers": {
"start": "^\\s*#\\s*region\\b",
"end": "^\\s*#\\s*endregion\\b"
}
},
"indentationRules": {
"increaseIndentPattern": "^\\s*.*(:|-) ?(&\\w+)?(\\{[^}\"']*|\\([^)\"']*)?$",
Expand Down

0 comments on commit b302ccb

Please sign in to comment.