Merge pull request #141 from MetaMemoryT/disable-languages-option
disable beautification of specific languages
This commit is contained in:
commit
f0ed7ac5ad
|
@ -318,6 +318,7 @@ plugin.configDefaults = _.merge(
|
||||||
beautifyEntireFileOnSave: true
|
beautifyEntireFileOnSave: true
|
||||||
muteUnsupportedLanguageErrors: false
|
muteUnsupportedLanguageErrors: false
|
||||||
muteAllErrors: false
|
muteAllErrors: false
|
||||||
|
disabledLanguages: []
|
||||||
, defaultLanguageOptions)
|
, defaultLanguageOptions)
|
||||||
plugin.activate = ->
|
plugin.activate = ->
|
||||||
handleSaveEvent()
|
handleSaveEvent()
|
||||||
|
|
|
@ -155,6 +155,8 @@ module.exports =
|
||||||
# Beautify!
|
# Beautify!
|
||||||
unsupportedGrammar = false
|
unsupportedGrammar = false
|
||||||
options = undefined
|
options = undefined
|
||||||
|
if atom.config.get("atom-beautify.disabledLanguages").indexOf(grammar) > - 1
|
||||||
|
return
|
||||||
switch grammar
|
switch grammar
|
||||||
# Treat JSON as JavaScript, because it will support comments.
|
# Treat JSON as JavaScript, because it will support comments.
|
||||||
# And Glavin001 has tested JSON beauifying with beautifyJS.
|
# And Glavin001 has tested JSON beauifying with beautifyJS.
|
||||||
|
|
Loading…
Reference in New Issue