init: load core views before user plugins

This commit is contained in:
jgmdev 2022-03-06 19:34:12 -04:00
parent 1be425d1de
commit d7d88a2037
1 changed files with 21 additions and 21 deletions

View File

@ -719,6 +719,17 @@ function core.init()
core.threads = setmetatable({}, { __mode = "k" })
core.blink_start = system.get_time()
core.blink_timer = core.blink_start
core.redraw = true
core.visited_files = {}
core.restart_request = false
core.quit_request = false
-- We load core views before plugins who may need them.
core.root_view = RootView()
core.command_view = CommandView()
core.status_view = StatusView()
core.nag_view = NagView()
core.title_view = TitleView()
local got_user_error, got_project_error = not core.load_user_directory()
@ -744,17 +755,6 @@ function core.init()
end
end
core.redraw = true
core.visited_files = {}
core.restart_request = false
core.quit_request = false
core.root_view = RootView()
core.command_view = CommandView()
core.status_view = StatusView()
core.nag_view = NagView()
core.title_view = TitleView()
local cur_node = core.root_view.root_node
cur_node.is_primary_node = true
cur_node:split("up", core.title_view, {y = true})