perf(plugin): move all lazy.nvim related code to lazyvim.util.plugin

This commit is contained in:
Folke Lemaitre
2023-10-10 21:51:09 +02:00
parent f1a8f24a36
commit 70f91956e7
4 changed files with 183 additions and 178 deletions

View File

@ -1,3 +1,13 @@
if vim.fn.has("nvim-0.9.0") == 0 then
vim.api.nvim_echo({
{ "LazyVim requires Neovim >= 0.9.0\n", "ErrorMsg" },
{ "Press any key to exit", "MoreMsg" },
}, true, {})
vim.fn.getchar()
vim.cmd([[quit]])
return {}
end
require("lazyvim.config").init()
return {