FollieHiyuki-dotfiles/home/.config/nvim/init.lua
FollieHiyuki a747daeacd
neovim: asynchronous loading in init.lua
Also fix luasnip mapping for nvim-cmp
2021-10-17 21:48:11 +07:00

15 lines
337 B
Lua

local async
async = vim.loop.new_async(vim.schedule_wrap(function()
require('plugins')
require('mappings')
require('events').load_autocmds()
async:close()
end))
local options = require('options')
options.disable_default_plugins()
options.load_options()
require('colors.' .. vim.g.global_theme).highlight()
async:send()