finalconfig of modular
This commit is contained in:
parent
ad12ab12d4
commit
d6e72bd4c1
7 changed files with 0 additions and 0 deletions
29
lua/plugins/health.lua
Normal file
29
lua/plugins/health.lua
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
--[plugins/health.lua]
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-lua/plenary.nvim",
|
||||
config = function()
|
||||
local health = vim.health or require("health")
|
||||
health.start("System Checks")
|
||||
|
||||
-- Check Neovim version
|
||||
local version = vim.version()
|
||||
if version and version.major >= 0 and version.minor >= 9 then
|
||||
health.ok("Neovim version is sufficient: " .. version.major .. "." .. version.minor)
|
||||
else
|
||||
health.error("Neovim 0.9+ required, found " .. version.major .. "." .. version.minor)
|
||||
end
|
||||
|
||||
-- Check executables
|
||||
local executables = { "git", "make", "unzip", "rg" }
|
||||
for _, exe in ipairs(executables) do
|
||||
if vim.fn.executable(exe) == 1 then
|
||||
health.ok(exe .. " is installed")
|
||||
else
|
||||
health.warn(exe .. " not found in PATH")
|
||||
end
|
||||
end
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue