mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-17 20:16:27 +00:00
Set snapshot based on vim version
This commit is contained in:
parent
fc47ec9051
commit
37714095b4
@ -23,7 +23,11 @@ local use = packer.use
|
||||
|
||||
packer.init({
|
||||
-- Always load default
|
||||
snapshot = "latest",
|
||||
snapshot = utils.map_version_rule({
|
||||
[">=0.8.0"] = "latest-0.8",
|
||||
[">=0.7.0"] = "latest-0.7",
|
||||
[">=0.5.0"] = "latest",
|
||||
}),
|
||||
snapshot_path = packer_util.join_paths(vim.fn.stdpath("config"), "packer_snapshots"),
|
||||
display = {
|
||||
open_fn = function()
|
||||
|
Loading…
Reference in New Issue
Block a user