mirror of https://github.com/folke/lazy.nvim.git
refactor: `Plugin.local` => `Plugin.dev`
This commit is contained in:
parent
ec858db225
commit
fbfa790d46
|
@ -34,7 +34,7 @@ local M = {}
|
||||||
---@field dir string
|
---@field dir string
|
||||||
---@field enabled? boolean|(fun():boolean)
|
---@field enabled? boolean|(fun():boolean)
|
||||||
---@field lazy? boolean
|
---@field lazy? boolean
|
||||||
---@field local? boolean
|
---@field dev? boolean If set, then link to the respective folder under your ~/projects
|
||||||
---@field dependencies? string[]
|
---@field dependencies? string[]
|
||||||
---@field _ LazyPluginState
|
---@field _ LazyPluginState
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ function Spec:add(plugin, is_dep)
|
||||||
|
|
||||||
-- check for plugins that should be local
|
-- check for plugins that should be local
|
||||||
for _, pattern in ipairs(Config.options.dev.patterns) do
|
for _, pattern in ipairs(Config.options.dev.patterns) do
|
||||||
if plugin["local"] or plugin[1]:find(pattern, 1, true) then
|
if plugin.dev or plugin[1]:find(pattern, 1, true) then
|
||||||
plugin.uri = Config.options.dev.path .. "/" .. plugin.name
|
plugin.uri = Config.options.dev.path .. "/" .. plugin.name
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue