mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-23 01:08:59 +02:00
refactor: move LazyVim init to core
This commit is contained in:
parent
bd4f350503
commit
2321847e72
3 changed files with 3 additions and 9 deletions
|
@ -76,9 +76,10 @@ function M.setup(opts)
|
|||
.. "Please upgrade **lazy.nvim**",
|
||||
{ title = "LazyVim" }
|
||||
)
|
||||
error("Exiting")
|
||||
end
|
||||
|
||||
if vim.fn.argc() == 0 then
|
||||
if vim.fn.argc(-1) == 0 then
|
||||
-- autocmds and keymaps can wait to load
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
group = vim.api.nvim_create_augroup("LazyVim", { clear = true }),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue