lazy loading 100%!!
parent
9f1dc90269
commit
4ff7208c66
@ -1,27 +1,17 @@
|
|||||||
-- load all options
|
|
||||||
require "options"
|
require "options"
|
||||||
|
|
||||||
-- load stuff only if theme is initialized
|
local async
|
||||||
if require "theme" then
|
async =
|
||||||
local async
|
vim.loop.new_async(
|
||||||
async =
|
vim.schedule_wrap(
|
||||||
vim.loop.new_async(
|
function()
|
||||||
vim.schedule_wrap(
|
require "pluginList"
|
||||||
function()
|
require "plugins.bufferline"
|
||||||
require "pluginList"
|
require "mappings"
|
||||||
require "plugins.bufferline"
|
require("utils").hideStuff()
|
||||||
require "highlights"
|
|
||||||
require "mappings"
|
|
||||||
require("utils").hideStuff()
|
|
||||||
|
|
||||||
async:close()
|
async:close()
|
||||||
end
|
end
|
||||||
)
|
|
||||||
)
|
)
|
||||||
async:send()
|
)
|
||||||
else
|
async:send()
|
||||||
-- otherwise run PackerSync
|
|
||||||
require "pluginList"
|
|
||||||
print("Now PackerSync will be executed, after completion, restart nvim.\n")
|
|
||||||
vim.cmd("PackerSync")
|
|
||||||
end
|
|
||||||
|
Loading…
Reference in New Issue