refactor: move LazyVim init to core
This commit is contained in:
@ -76,9 +76,10 @@ function M.setup(opts)
|
|||||||
.. "Please upgrade **lazy.nvim**",
|
.. "Please upgrade **lazy.nvim**",
|
||||||
{ title = "LazyVim" }
|
{ title = "LazyVim" }
|
||||||
)
|
)
|
||||||
|
error("Exiting")
|
||||||
end
|
end
|
||||||
|
|
||||||
if vim.fn.argc() == 0 then
|
if vim.fn.argc(-1) == 0 then
|
||||||
-- autocmds and keymaps can wait to load
|
-- autocmds and keymaps can wait to load
|
||||||
vim.api.nvim_create_autocmd("User", {
|
vim.api.nvim_create_autocmd("User", {
|
||||||
group = vim.api.nvim_create_augroup("LazyVim", { clear = true }),
|
group = vim.api.nvim_create_augroup("LazyVim", { clear = true }),
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
-- only add for >=9.0.1, since there's an endless loop in earlier versions
|
require("lazyvim.config").init()
|
||||||
if not require("lazyvim.config").has(">=9.1.0") then
|
|
||||||
require("lazyvim.config").setup()
|
|
||||||
return {}
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{ "folke/lazy.nvim", version = "*" },
|
{ "folke/lazy.nvim", version = "*" },
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
require("lazyvim.config").init()
|
|
||||||
|
|
||||||
return {}
|
|
Reference in New Issue
Block a user