nvchad/init.lua

29 lines
731 B
Lua
Raw Normal View History

-- load all options
2021-07-08 23:44:04 -04:00
require "options"
2021-03-12 02:04:15 -05:00
-- only try to load stuff if atleast base16 is initialized
-- TODO: Find a better way to trigger PackerSync
if require "theme" then
local async
async =
vim.loop.new_async(
vim.schedule_wrap(
function()
require "pluginList"
require "plugins.bufferline"
require "highlights"
require "mappings"
require("utils").hideStuff()
async:close()
end
)
)
async:send()
else
-- otherwise run packer sync
require "pluginList"
print("Now PackerSync will be executed, after completion, restart neovim.\n")
vim.cmd("PackerSync")
end