refactor: implement modular plugin structure

This commit is contained in:
Nikhil 2025-08-19 00:59:57 +05:30
parent ede41b38f0
commit af74dce5b9
17 changed files with 1853 additions and 1204 deletions

View 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,
},
}