mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2025-02-02 07:34:19 +00:00
Add snapshotting
This commit is contained in:
parent
08a50b1621
commit
53efd0ff51
@ -17,8 +17,21 @@ local function config_dark_notify()
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
return require("packer").startup({
|
local packer = require("packer")
|
||||||
function(use)
|
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!
|
-- Load things faster!
|
||||||
use({ "lewis6991/impatient.nvim", config = [[require('impatient')]] })
|
use({ "lewis6991/impatient.nvim", config = [[require('impatient')]] })
|
||||||
|
|
||||||
@ -116,18 +129,8 @@ return require("packer").startup({
|
|||||||
use({
|
use({
|
||||||
"milkypostman/vim-togglelist",
|
"milkypostman/vim-togglelist",
|
||||||
config = function()
|
config = function()
|
||||||
vim.api.nvim_set_keymap(
|
vim.api.nvim_set_keymap("n", "<F6>", ":call ToggleQuickfixList()<CR>", { silent = true, noremap = true })
|
||||||
"n",
|
vim.api.nvim_set_keymap("n", "<F7>", ":call ToggleLocationList()<CR>", { silent = true, noremap = true })
|
||||||
"<F6>",
|
|
||||||
":call ToggleQuickfixList()<CR>",
|
|
||||||
{ silent = true, noremap = true }
|
|
||||||
)
|
|
||||||
vim.api.nvim_set_keymap(
|
|
||||||
"n",
|
|
||||||
"<F7>",
|
|
||||||
":call ToggleLocationList()<CR>",
|
|
||||||
{ silent = true, noremap = true }
|
|
||||||
)
|
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -353,14 +356,5 @@ return require("packer").startup({
|
|||||||
|
|
||||||
-- Auto sync after bootstrapping on a fresh box
|
-- Auto sync after bootstrapping on a fresh box
|
||||||
if packer_bootstrap then
|
if packer_bootstrap then
|
||||||
require("packer").sync()
|
packer.sync()
|
||||||
end
|
end
|
||||||
end,
|
|
||||||
config = {
|
|
||||||
display = {
|
|
||||||
open_fn = function()
|
|
||||||
return require("packer.util").float({ border = "single" })
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user