mirror of https://github.com/folke/lazy.nvim.git
feat: added support for Plugin.lock (wont update)
This commit is contained in:
parent
1bbfa3a747
commit
0774f1bc25
|
@ -24,6 +24,7 @@
|
|||
|
||||
## ✅ TODO
|
||||
|
||||
- [x] support for Plugin.lock
|
||||
- [ ] health checks: check merge conflicts async
|
||||
- [ ] defaults for git log
|
||||
- [x] view keybindings for update/clean/...
|
||||
|
|
|
@ -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…
Reference in New Issue