From 5d81c5062b42445d5a752c3f691b08c2926b949c Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Wed, 30 Nov 2022 23:08:00 +0100 Subject: [PATCH] refactor: renamed plugins_local to dev --- lua/lazy/core/config.lua | 6 +++--- lua/lazy/core/plugin.lua | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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