From 561f1d8f8b39105414dd643b9e3b98bcb39f5247 Mon Sep 17 00:00:00 2001 From: Squibid Date: Tue, 24 Jun 2025 17:19:42 -0400 Subject: [PATCH] add a description field to modules --- lua/dep/modules/module.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/dep/modules/module.lua b/lua/dep/modules/module.lua index f83bc11..930b8b6 100644 --- a/lua/dep/modules/module.lua +++ b/lua/dep/modules/module.lua @@ -3,6 +3,7 @@ local packager = require("dep.package") ---@class module ---@field name string name of the module +---@field desc string description of the module ---@field path string path to the module ---@field mod table the module local module = {} @@ -22,6 +23,7 @@ function module:new(modpath, prefix, overrides) setmetatable(o, self) o.name = "" + o.desc = "" if type(modpath) == "string" then if prefix ~= nil then if prefix:sub(#prefix) ~= "." and modpath:sub(1, 2) ~= "." then @@ -38,6 +40,7 @@ function module:new(modpath, prefix, overrides) end end o.name = o.mod.name or o.name + o.desc = o.mod.desc or o.desc -- allow a module to be a spec if spec_man.check(o.mod, true) ~= false then