refactor: rename Plugin.lock => Plugin.pin to prevent confusion with the lockfile

This commit is contained in:
Folke Lemaitre 2022-11-29 20:19:07 +01:00
parent b796abcc33
commit 69cdb718f8
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 5 additions and 5 deletions

View file

@ -32,7 +32,7 @@ M.dirty = false
---@field tag? string
---@field commit? string
---@field version? string
---@field lock? boolean
---@field pin? boolean
---@class LazyPlugin: LazyPluginHandlers,LazyPluginHooks,LazyPluginRef
---@field [1] string

View file

@ -131,7 +131,7 @@ M.checkout = {
-- if the plugin is locked and we did not just clone it,
-- then don't update
if self.plugin.lock and not self.plugin._.cloned then
if self.plugin.pin and not self.plugin._.cloned then
target = info
end