diff --git a/lua/lazy/core/config.lua b/lua/lazy/core/config.lua index 39c562e..9e03653 100644 --- a/lua/lazy/core/config.lua +++ b/lua/lazy/core/config.lua @@ -6,10 +6,10 @@ local M = {} M.defaults = { opt = true, plugins = "config.plugins", - plugins_local = { - path = vim.fn.expand("~/projects"), + dev = { + path = vim.fn.expand("~/projects"), -- the path where you store your projects ---@type string[] - patterns = {}, + patterns = {}, -- For example {"folke"} }, packpath = vim.fn.stdpath("data") .. "/site/pack/lazy", lockfile = vim.fn.stdpath("config") .. "/lazy-lock.json", diff --git a/lua/lazy/core/plugin.lua b/lua/lazy/core/plugin.lua index 815a57e..41cac42 100644 --- a/lua/lazy/core/plugin.lua +++ b/lua/lazy/core/plugin.lua @@ -86,9 +86,9 @@ function Spec:add(plugin, is_dep) plugin.dep = is_dep -- check for plugins that should be local - for _, pattern in ipairs(Config.options.plugins_local.patterns) do + for _, pattern in ipairs(Config.options.dev.patterns) do if plugin[1]:find(pattern, 1, true) then - plugin.uri = Config.options.plugins_local.path .. "/" .. plugin.name + plugin.uri = Config.options.dev.path .. "/" .. plugin.name break end end