Skip to content

Commit

Permalink
fix: dev plugins with dev=false should be configured as remote
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 13, 2022
1 parent f52cf32 commit 43b303b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,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.dev or plugin[1]:find(pattern, 1, true) then
if plugin.dev or (plugin[1]:find(pattern, 1, true) and plugin.dev ~= false) then
plugin.uri = Config.options.dev.path .. "/" .. plugin.name
break
end
Expand Down

0 comments on commit 43b303b

Please sign in to comment.