FollieHiyuki-dotfiles/home/.config/nvim/init.lua
FollieHiyuki 68b4e1d59f
neovim: move autocmd out of async loop
setfiletype doesn't trigger when autocmd is lazy loaded
2021-10-17 21:48:13 +07:00

15 lines
318 B
Lua

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