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