From 346ade415579954034e051a2a4671a56aceccfe8 Mon Sep 17 00:00:00 2001 From: kyoh86 Date: Wed, 26 Jul 2023 17:17:00 +0900 Subject: [PATCH] fix optional types --- lua/lazy/core/handler/keys.lua | 2 +- lua/lazy/types.lua | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lua/lazy/core/handler/keys.lua b/lua/lazy/core/handler/keys.lua index cdf2243..315cb03 100644 --- a/lua/lazy/core/handler/keys.lua +++ b/lua/lazy/core/handler/keys.lua @@ -9,7 +9,7 @@ local Loader = require("lazy.core.loader") ---@field noremap? boolean ---@field remap? boolean ---@field expr? boolean ----@field id string +---@field id? string ---@class LazyKeysHandler:LazyHandler local M = {} diff --git a/lua/lazy/types.lua b/lua/lazy/types.lua index df8c19d..f9589fd 100644 --- a/lua/lazy/types.lua +++ b/lua/lazy/types.lua @@ -40,11 +40,11 @@ ---@field submodules? boolean Defaults to true ---@class LazyPluginBase ----@field [1] string? ----@field name string display name and name used for plugin config files +---@field [1] string +---@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