mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 05:20:38 +00:00
643d1bd7d8
third commit of refactor perf improvements due to async run packer sync if base16 not found this is not perfect error handling for initial run, but something handle require errors
28 lines
731 B
Lua
28 lines
731 B
Lua
-- load all options
|
|
require "options"
|
|
|
|
-- 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
|