add own config

This commit is contained in:
Michael Mc Mahon 2024-09-10 06:41:46 -04:00
parent de44f49101
commit f3c20b4fb5
4 changed files with 1797 additions and 756 deletions

View file

@ -6,13 +6,13 @@
--]]
local check_version = function()
local verstr = tostring(vim.version())
if not vim.version.ge then
local verstr = string.format('%s.%s.%s', vim.version().major, vim.version().minor, vim.version().patch)
if not vim.version.cmp then
vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))
return
end
if vim.version.ge(vim.version(), '0.10-dev') then
if vim.version.cmp(vim.version(), { 0, 9, 4 }) >= 0 then
vim.health.ok(string.format("Neovim version is: '%s'", verstr))
else
vim.health.error(string.format("Neovim out of date: '%s'. Upgrade to latest stable or nightly", verstr))