From 650a7429f3bb422bfb085eda07bd8a850cf13409 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 2 Jan 2023 09:50:31 +0100 Subject: [PATCH] ci(lazy): allow to use a different lazy plugin directory --- lua/lazyvim/config/lazy.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/config/lazy.lua b/lua/lazyvim/config/lazy.lua index f583b01f..6e46b6eb 100644 --- a/lua/lazyvim/config/lazy.lua +++ b/lua/lazyvim/config/lazy.lua @@ -9,9 +9,10 @@ if not vim.loop.fs_stat(lazypath) then lazypath, }) end -vim.opt.rtp:prepend(lazypath) +vim.opt.rtp:prepend(vim.env.LAZY or lazypath) -require("lazy").setup("plugins", { +require("lazy").setup({ + spec = "lazyvim.plugins", defaults = { lazy = true, version = "*" }, install = { colorscheme = { "tokyonight", "habamax" } }, checker = { enabled = true },