Fix regressions after
ba98b55:
- Unable to override filetype autodetection by setting a specific filetype
for specific files, i.e. this doesn't work:
"*.h": {
"filetype": "c++"
},
- Unable to enable/disable syntax highlighting for specific files,
i.e. this doesn't work:
"*.c": {
"syntax": false
},
- "readonly" setting doesn't work (neither global nor per-filetype).
for k, v := range config.GlobalSettings {
if _, ok := config.DefaultGlobalOnlySettings[k]; !ok {
// make sure setting is not global-only
+ settings[k] = v
b.Settings[k] = v
}
}
- b.Settings["readonly"] = settings["readonly"]
config.InitLocalSettings(settings, path)
+ b.Settings["readonly"] = settings["readonly"]
+ b.Settings["filetype"] = settings["filetype"]
+ b.Settings["syntax"] = settings["syntax"]
enc, err := htmlindex.Get(settings["encoding"].(string))
if err != nil {