mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-28 10:18:25 -05:00
neovim: move autocmd out of async loop
setfiletype doesn't trigger when autocmd is lazy loaded
This commit is contained in:
parent
493e7d6c1c
commit
68b4e1d59f
@ -2,7 +2,6 @@ local async
|
|||||||
async = vim.loop.new_async(vim.schedule_wrap(function()
|
async = vim.loop.new_async(vim.schedule_wrap(function()
|
||||||
require('plugins')
|
require('plugins')
|
||||||
require('mappings')
|
require('mappings')
|
||||||
require('autocmd')
|
|
||||||
async:close()
|
async:close()
|
||||||
end))
|
end))
|
||||||
|
|
||||||
@ -11,4 +10,5 @@ local options = require('options')
|
|||||||
options.disable_default_plugins()
|
options.disable_default_plugins()
|
||||||
options.load_options()
|
options.load_options()
|
||||||
require('colors.' .. vim.g.global_theme).highlight()
|
require('colors.' .. vim.g.global_theme).highlight()
|
||||||
|
require('autocmd')
|
||||||
async:send()
|
async:send()
|
||||||
|
Loading…
Reference in New Issue
Block a user