mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
feat: added support for Plugin.lock (wont update)
This commit is contained in:
parent
1bbfa3a747
commit
0774f1bc25
3 changed files with 6 additions and 0 deletions
|
@ -31,6 +31,7 @@ M.dirty = false
|
|||
---@field tag? string
|
||||
---@field commit? string
|
||||
---@field version? string
|
||||
---@field lock? boolean
|
||||
|
||||
---@class LazyPlugin: LazyPluginHandlers,LazyPluginHooks,LazyPluginRef
|
||||
---@field [1] string
|
||||
|
|
|
@ -130,6 +130,10 @@ M.checkout = {
|
|||
local info = assert(Git.info(self.plugin.dir))
|
||||
local target = assert(Git.get_target(self.plugin))
|
||||
|
||||
if self.plugin.lock then
|
||||
target = info
|
||||
end
|
||||
|
||||
local lock
|
||||
if opts.lockfile then
|
||||
lock = Lock.get(self.plugin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue