diff --git a/lua/lazyvim/config/init.lua b/lua/lazyvim/config/init.lua index ad32353b..4a36450d 100644 --- a/lua/lazyvim/config/init.lua +++ b/lua/lazyvim/config/init.lua @@ -89,6 +89,21 @@ local options ---@param opts? LazyVimConfig function M.setup(opts) options = vim.tbl_deep_extend("force", defaults, opts or {}) + + 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 + if not M.has() then require("lazy.core.util").error( "**LazyVim** needs **lazy.nvim** version "