From 04677b7c57d87c4fc855701cc0a7b242d0886902 Mon Sep 17 00:00:00 2001 From: Daemon Date: Sun, 8 Dec 2024 16:50:06 -0800 Subject: [PATCH] fix: ensure all fields for `LazyPluginBase` are optional --- lua/lazy/types.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/lazy/types.lua b/lua/lazy/types.lua index 0dbba9a..b6064e1 100644 --- a/lua/lazy/types.lua +++ b/lua/lazy/types.lua @@ -49,10 +49,10 @@ ---@class LazyPluginBase ---@field [1] string? ----@field name string display name and name used for plugin config files +---@field name? string display name and name used for plugin config files ---@field main? string Entry module that has setup & deactivate ----@field url string? ----@field dir string +---@field url? string +---@field dir? string ---@field enabled? boolean|(fun():boolean) ---@field cond? boolean|(fun():boolean) ---@field optional? boolean If set, then this plugin will not be added unless it is added somewhere else