Undotree. more old vim stuff

master
Dustin Swan 2 years ago
parent 50b01b5a0e
commit 063ff51351
Signed by: dustinswan
GPG Key ID: AB49BD6B2B3A6377

@ -9,14 +9,20 @@ vim.opt.mouse = 'a'
vim.opt.ignorecase = true
vim.opt.smartcase = true
vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.opt.expandtab = true
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.termguicolors = true
vim.opt.completeopt = "menu,menuone,noselect"
vim.opt.cursorline = true
vim.opt.cursorcolumn = true
vim.opt.laststatus = 3 -- global status line
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undofile = true
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.scrolloff = 8
vim.opt.updatetime = 50
vim.api.nvim_create_autocmd('FileType', { pattern = 'org', command = 'setlocal nowrap' })
vim.api.nvim_create_autocmd('TextYankPost', {
@ -299,6 +305,8 @@ require('packer').startup(function(use)
end
})
use("mbbill/undotree");
if packer_bootstrap then
require('packer').sync()
end
@ -352,6 +360,7 @@ wk.register({
},
S = { ":SplitjoinSplit<cr>", "Split" },
T = { ":TroubleToggle<cr>", "Trouble" },
u = { ":UndoTreeToggle<cr>", "UndoTree" },
},
["<S-l>"] = { ":BufferLineCycleNext<cr>", "Next Tab" },
["<S-h>"] = { ":BufferLineCyclePrev<cr>", "Previous Tab" },

Loading…
Cancel
Save