From 2420c8860ffd327fbb2a558330d32e75f97ccca4 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Sat, 20 Jan 2024 08:51:43 -0500 Subject: [PATCH] fix(lazy): update typing and structure of lazy setup call --- lua/config/lazy.lua | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index 5f89595..7e9c56e 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -15,17 +15,16 @@ if not lazy_loaded then end ---@type LazyConfig -lazy.setup { - spec = { - -- TODO: change `branch="v4"` to `version="^4"` on release - { "AstroNvim/AstroNvim", branch = "v4", import = "astronvim.plugins" }, - -- AstroCommunity: import any community modules here - -- TODO: Remove branch v4 on release - -- { "AstroNvim/astrocommunity", branch = "v4" }, - -- { import = "astrocommunity.pack.lua" }, - -- import/override with your plugins - { import = "plugins" }, - }, +lazy.setup({ + -- TODO: change `branch="v4"` to `version="^4"` on release + { "AstroNvim/AstroNvim", branch = "v4", import = "astronvim.plugins" }, + -- AstroCommunity: import any community modules here + -- TODO: Remove branch v4 on release + -- { "AstroNvim/astrocommunity", branch = "v4" }, + -- { import = "astrocommunity.pack.lua" }, + -- import/override with your plugins + { import = "plugins" }, +} --[[@as LazySpec]], { install = { colorscheme = { "astrodark", "habamax" } }, performance = { rtp = { @@ -39,4 +38,4 @@ lazy.setup { }, }, }, -} +} --[[@as LazyConfig]])