fixed loading order

plugins were not able to provide colorschemes
This commit is contained in:
Florian Sundermann 2016-09-19 16:04:59 +02:00
parent 1720d4023f
commit 8172ebf62b

View file

@ -242,9 +242,6 @@ func main() {
InitCommands()
InitBindings()
// Load the syntax files, including the colorscheme
LoadSyntaxFiles()
// Start the screen
InitScreen()
@ -321,11 +318,14 @@ func main() {
L.SetGlobal("ListRuntimeFiles", luar.New(L, PluginListRuntimeFiles))
L.SetGlobal("AddRuntimeFile", luar.New(L, PluginAddRuntimeFile))
LoadPlugins()
jobs = make(chan JobFunction, 100)
events = make(chan tcell.Event, 100)
LoadPlugins()
// Load the syntax files, including the colorscheme
LoadSyntaxFiles()
for _, t := range tabs {
for _, v := range t.views {
for _, pl := range loadedPlugins {