mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-22 04:21:08 +00:00
fix(core): check for outdated nightly. See #6458
This commit is contained in:
parent
75a3809e15
commit
cfac3c9a85
1 changed files with 13 additions and 2 deletions
|
|
@ -1,9 +1,20 @@
|
||||||
|
local fail = nil
|
||||||
if vim.fn.has("nvim-0.11.2") == 0 then
|
if vim.fn.has("nvim-0.11.2") == 0 then
|
||||||
vim.api.nvim_echo({
|
fail = {
|
||||||
{ "LazyVim requires Neovim >= 0.11.2\n", "ErrorMsg" },
|
{ "LazyVim requires Neovim >= 0.11.2\n", "ErrorMsg" },
|
||||||
{ "For more info, see: https://github.com/LazyVim/LazyVim/issues/6421\n", "Comment" },
|
{ "For more info, see: https://github.com/LazyVim/LazyVim/issues/6421\n", "Comment" },
|
||||||
{ "Press any key to exit", "MoreMsg" },
|
{ "Press any key to exit", "MoreMsg" },
|
||||||
}, true, {})
|
}
|
||||||
|
elseif vim.fn.has("nvim-0.12") == 1 and not vim.lsp.is_enabled then
|
||||||
|
fail = {
|
||||||
|
{ "LazyVim requires Neovim >= 0.11.2 or a recent Nightly\n", "ErrorMsg" },
|
||||||
|
{ "Your nightly is too old, please update to a more recent version.\n", "Comment" },
|
||||||
|
{ "Press any key to exit", "MoreMsg" },
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
if fail then
|
||||||
|
vim.api.nvim_echo(fail, true, {})
|
||||||
vim.fn.getchar()
|
vim.fn.getchar()
|
||||||
vim.cmd([[quit]])
|
vim.cmd([[quit]])
|
||||||
return {}
|
return {}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue