Skip to content

Commit

Permalink
feat: Plugin.local to use a local project instead of fetching remote
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 2, 2022
1 parent afcba52 commit 0ba218a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/lazy/core/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ local M = {}
---@field dir string
---@field enabled? boolean|(fun():boolean)
---@field lazy? boolean
---@field local? boolean
---@field dependencies? string[]
---@field _ LazyPluginState

Expand Down Expand Up @@ -85,7 +86,7 @@ function Spec:add(plugin, is_dep)

-- check for plugins that should be local
for _, pattern in ipairs(Config.options.dev.patterns) do
if plugin[1]:find(pattern, 1, true) then
if plugin["local"] or plugin[1]:find(pattern, 1, true) then
plugin.uri = Config.options.dev.path .. "/" .. plugin.name
break
end
Expand Down

0 comments on commit 0ba218a

Please sign in to comment.