mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2025-01-22 12:54:16 +00:00
Add snapshotting
This commit is contained in:
parent
08a50b1621
commit
53efd0ff51
@ -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,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user