Added undotree, an undo history system

This commit is contained in:
dpearre 2024-10-06 21:53:43 -07:00
parent 37a8553df7
commit 11aa688c4d
1 changed files with 32 additions and 0 deletions

View File

@ -212,6 +212,9 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
-- Set keymap to toggle nvim-tree
vim.keymap.set('n', '<leader>e', '<cmd>NvimTreeToggle<CR>', { desc = 'Toggle Nvim Tree' })
-- Set keymap to toggle undo-tree
vim.keymap.set('n', '<leader>u', ':UndotreeToggle<CR>', { desc = 'Toggle UndoTree' })
-- [[ Basic Autocommands ]]
-- See `:help lua-guide-autocommands`
@ -268,6 +271,35 @@ vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
'mbbill/undotree', -- recommended undo history system
{
'nvim-tree/nvim-tree.lua',
requires = {
'nvim-tree/nvim-web-devicons', -- optional, for file icons
},
config = function()
require('nvim-tree').setup {
-- Your nvim-tree setup options go here
view = {
side = 'left',
width = 30,
},
renderer = {
icons = {
show = {
file = true,
folder = true,
folder_arrow = true,
git = true,
},
},
},
filters = {
dotfiles = false,
},
}
end,
},
-- NOTE: Plugins can also be added by using a table,
-- with the first argument being the link and the following