summaryrefslogtreecommitdiff
path: root/dot_config/nvim/lua/plugins/undotree.lua
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/nvim/lua/plugins/undotree.lua')
-rw-r--r--dot_config/nvim/lua/plugins/undotree.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/dot_config/nvim/lua/plugins/undotree.lua b/dot_config/nvim/lua/plugins/undotree.lua
new file mode 100644
index 0000000..3a6d160
--- /dev/null
+++ b/dot_config/nvim/lua/plugins/undotree.lua
@@ -0,0 +1,8 @@
+return {
+ "jiaoshijie/undotree",
+ dependencies = "nvim-lua/plenary.nvim",
+ config = true,
+ keys = { -- load the plugin only when using it's keybinding:
+ { "<leader>u", "<cmd>lua require('undotree').toggle()<cr>", desc = "Toggle Undotree" },
+ },
+}