summaryrefslogtreecommitdiffstatshomepage
path: root/nvim/.config/nvim/lua/tobyvin/plugins/undotree.lua
blob: 47f24ef37196e472ba6bc2144f8f963756650a20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local M = {
	"jiaoshijie/undotree",
	dependencies = {
		"nvim-lua/plenary.nvim",
	},
	cmd = "UndoTree",
	opts = {
		window = {
			winblend = 0,
		},
	},
}

function M.init()
	vim.api.nvim_create_user_command("UndoTree", function()
		require("undotree").open()
	end, { desc = "toggle undotree" })
end

return M