Add snapshotting

This commit is contained in:
ViViDboarder 2022-02-25 11:03:05 -08:00
parent 08a50b1621
commit 53efd0ff51
1 changed files with 302 additions and 308 deletions

View File

@ -17,8 +17,21 @@ local function config_dark_notify()
})
end
return require("packer").startup({
function(use)
local packer = require("packer")
local packer_util = require("packer.util")
local use = packer.use
packer.init({
-- Always load default
snapshot = "latest",
snapshot_path = packer_util.join_paths(vim.fn.stdpath("config"), "packer_snapshots"),
display = {
open_fn = function()
return packer_util.float({ border = "single" })
end,
},
})
-- Load things faster!
use({ "lewis6991/impatient.nvim", config = [[require('impatient')]] })
@ -116,18 +129,8 @@ return require("packer").startup({
use({
"milkypostman/vim-togglelist",
config = function()
vim.api.nvim_set_keymap(
"n",
"<F6>",
":call ToggleQuickfixList()<CR>",
{ silent = true, noremap = true }
)
vim.api.nvim_set_keymap(
"n",
"<F7>",
":call ToggleLocationList()<CR>",
{ silent = true, noremap = true }
)
vim.api.nvim_set_keymap("n", "<F6>", ":call ToggleQuickfixList()<CR>", { silent = true, noremap = true })
vim.api.nvim_set_keymap("n", "<F7>", ":call ToggleLocationList()<CR>", { silent = true, noremap = true })
end,
})
@ -353,14 +356,5 @@ return require("packer").startup({
-- Auto sync after bootstrapping on a fresh box
if packer_bootstrap then
require("packer").sync()
packer.sync()
end
end,
config = {
display = {
open_fn = function()
return require("packer.util").float({ border = "single" })
end,
},
},
})