From 7bd97062c98418a9bdf31df0b84737da67bed38b Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sun, 4 Jun 2023 05:10:35 -0600 Subject: add undotree --- init.lua | 3 +-- lua/plugins/undotree.lua | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 lua/plugins/undotree.lua diff --git a/init.lua b/init.lua index 6409a93..d04ff6d 100644 --- a/init.lua +++ b/init.lua @@ -2,8 +2,7 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' --- Install package manager --- https://github.com/folke/lazy.nvim +-- Install https://github.com/folke/lazy.nvim local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' if not vim.loop.fs_stat(lazypath) then vim.fn.system { diff --git a/lua/plugins/undotree.lua b/lua/plugins/undotree.lua new file mode 100644 index 0000000..047a5ac --- /dev/null +++ b/lua/plugins/undotree.lua @@ -0,0 +1,7 @@ +return { + 'mbbill/undotree', + -- lazy load on u + keys = { + { 'u', 'UndotreeToggle', desc = 'Toggle [U]ndotree' }, + }, +} -- cgit v1.2.3-70-g09d2