feat: added lockfile support

This commit is contained in:
Folke Lemaitre 2022-11-29 00:15:13 +01:00
parent bbad0cb891
commit 4384d0e6d9
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
7 changed files with 127 additions and 44 deletions

View file

@ -13,6 +13,7 @@ M.defaults = {
},
interactive = true,
packpath = vim.fn.stdpath("data") .. "/site/pack/lazy",
lockfile = vim.fn.stdpath("config") .. "/lazy-lock.json",
view = {
icons = {
start = "",
@ -23,6 +24,7 @@ M.defaults = {
keys = "",
cmd = "",
ft = "",
task = "",
},
},
}

View file

@ -18,11 +18,11 @@ M.dirty = false
---@class LazyPluginState
---@field loaded? {[string]:string, time:number}
---@field installed? boolean
---@field installed boolean
---@field tasks? LazyTask[]
---@field dirty? boolean
---@field updated? {from:string, to:string}
---@field is_local? boolean
---@field is_local boolean
---@field is_symlink? boolean
---@field cloned? boolean