See #894. Set default tabLength to 4 and softTabs to true

This commit is contained in:
Glavin Wiechert 2017-04-15 19:48:49 -03:00
parent dfacbf0103
commit 36f09d0719
2 changed files with 238 additions and 274 deletions

File diff suppressed because it is too large Load Diff

View File

@ -117,8 +117,8 @@ module.exports = class Beautifiers extends EventEmitter
options = require('../options.json')
options = _.mapValues(options, (lang) ->
scope = lang.scope
tabLength = atom?.config.get('editor.tabLength', scope: scope)
softTabs = atom?.config.get('editor.softTabs', scope: scope)
tabLength = atom?.config.get('editor.tabLength', scope: scope) ? 4
softTabs = atom?.config.get('editor.softTabs', scope: scope) ? true
defaultIndentSize = (if softTabs then tabLength else 1)
defaultIndentChar = (if softTabs then " " else "\t")
defaultIndentWithTabs = not softTabs