summaryrefslogtreecommitdiffstats
path: root/lua/conf/plugins/undotree.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/conf/plugins/undotree.lua')
-rw-r--r--lua/conf/plugins/undotree.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/lua/conf/plugins/undotree.lua b/lua/conf/plugins/undotree.lua
new file mode 100644
index 0000000..e649d57
--- /dev/null
+++ b/lua/conf/plugins/undotree.lua
@@ -0,0 +1,12 @@
+local misc = require('core.misc')
+local map = misc.map
+
+return { 'mbbill/undotree',
+ function()
+ if (vim.g.loaded_undotree) then
+ vim.g.undotree_DiffAutoOpen = 0
+ end
+
+ map("n", "<leader>u", "<cmd>UndotreeToggle<CR>")
+ end
+}