2021-08-11 19:19:02 +00:00
|
|
|
-- see `:help` for any questions
|
|
|
|
-- use `&<var>` to show value of vimscript variable
|
|
|
|
|
|
|
|
|
|
|
|
-- API --
|
|
|
|
o = vim.o -- options
|
|
|
|
go = vim.go -- only-global options
|
|
|
|
bo = vim.bo -- buffer local options
|
|
|
|
wo = vim.wo -- window local options
|
|
|
|
|
|
|
|
cmd = vim.cmd -- vim commands
|
|
|
|
fn = vim.fn -- vim functions
|
|
|
|
opt = vim.opt -- vim option object
|
|
|
|
|
|
|
|
g = vim.g -- global variables
|
|
|
|
b = vim.b -- buffer local variables
|
|
|
|
w = vim.w -- window local variables
|
|
|
|
t = vim.t -- tab local variables
|
|
|
|
v = vim.v -- variables
|
|
|
|
env = vim.env -- environment variables
|
|
|
|
|
|
|
|
local modules = {
|
|
|
|
'general',
|
|
|
|
'keymap',
|
2021-08-11 19:23:45 +00:00
|
|
|
'ui'
|
2021-08-11 19:19:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
local async
|
|
|
|
async = vim.loop.new_async(
|
|
|
|
vim.schedule_wrap(
|
|
|
|
function()
|
|
|
|
for i = 1, #modules, 1 do
|
|
|
|
pcall(require, modules[i])
|
|
|
|
end
|
|
|
|
async:close()
|
|
|
|
end
|
|
|
|
)
|
|
|
|
)
|
|
|
|
async:send()
|