Set snapshot based on vim version

This commit is contained in:
ViViDboarder 2023-03-08 14:39:00 -08:00
parent fc47ec9051
commit 37714095b4
1 changed files with 5 additions and 1 deletions

View File

@ -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()