mirror of
https://github.com/morten-olsen/astrovim.git
synced 2026-02-08 01:46:27 +01:00
init
This commit is contained in:
18
plugins/undo-tree.lua
Normal file
18
plugins/undo-tree.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
local opt = vim.o
|
||||
local run = vim.cmd
|
||||
|
||||
return {
|
||||
"mbbill/undotree",
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
opt.backup = true -- enable backup
|
||||
opt.backupdir = os.getenv("HOME") .. "/.vim/backup" -- save backups to this directory
|
||||
opt.swapfile = false -- no swap file, no
|
||||
|
||||
-- save undo history
|
||||
opt.undodir = os.getenv("HOME") .. "/.vim/undo"
|
||||
end,
|
||||
keys = {
|
||||
{ "<leader>U", ":UndotreeToggle<cr>", desc = "Toggle undotree"}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user