refactor: `Plugin.local` => `Plugin.dev`

This commit is contained in:
Folke Lemaitre 2022-12-02 22:48:38 +01:00
parent ec858db225
commit fbfa790d46
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ local M = {}
---@field dir string
---@field enabled? boolean|(fun():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 _ LazyPluginState
@ -86,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["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
break
end