mirror of
https://github.com/Baipyrus/nvim-config.git
synced 2024-12-26 13:21:45 +00:00
7513ec8a7d
* Neovim 0.10 updates Provide the buffer for which to enable inlay hints Co-authored-by: Matt Mirus <matt@mattmirus.com> * refactor: replace vim.loop with vim.uv * Upgrade folke/neodev (sunsetting) to folke/lazydev * Update checkhealth for 0.10 release --------- Co-authored-by: Matt Mirus <matt@mattmirus.com> Co-authored-by: mrr11k <me+github@mrr11k.dev> Co-authored-by: Seb Tomasini <sebt@qgates.com>
53 lines
1.5 KiB
Lua
53 lines
1.5 KiB
Lua
--[[
|
|
--
|
|
-- This file is not required for your own configuration,
|
|
-- but helps people determine if their system is setup correctly.
|
|
--
|
|
--]]
|
|
|
|
local check_version = function()
|
|
local verstr = tostring(vim.version())
|
|
if not vim.version.ge 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
|
|
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))
|
|
end
|
|
end
|
|
|
|
local check_external_reqs = function()
|
|
-- Basic utils: `git`, `make`, `unzip`
|
|
for _, exe in ipairs { 'git', 'make', 'unzip', 'rg' } do
|
|
local is_executable = vim.fn.executable(exe) == 1
|
|
if is_executable then
|
|
vim.health.ok(string.format("Found executable: '%s'", exe))
|
|
else
|
|
vim.health.warn(string.format("Could not find executable: '%s'", exe))
|
|
end
|
|
end
|
|
|
|
return true
|
|
end
|
|
|
|
return {
|
|
check = function()
|
|
vim.health.start 'kickstart.nvim'
|
|
|
|
vim.health.info [[NOTE: Not every warning is a 'must-fix' in `:checkhealth`
|
|
|
|
Fix only warnings for plugins and languages you intend to use.
|
|
Mason will give warnings for languages that are not installed.
|
|
You do not need to install, unless you want to use those languages!]]
|
|
|
|
local uv = vim.uv or vim.loop
|
|
vim.health.info('System Information: ' .. vim.inspect(uv.os_uname()))
|
|
|
|
check_version()
|
|
check_external_reqs()
|
|
end,
|
|
}
|