Explore the source / nvim

Inside nvim.

Neovim modules, plugins, mappings, and shared theme. Browse the current public files here, or visit the nvim repository on GitHub.

nvim / main

lua/myconf/plugins/undotree.lua

View on GitHub
return {
   "mbbill/undotree",
   config = function()
      local keymap = vim.keymap -- for conciseness

      keymap.set("n", "<leader>ut", ":UndotreeToggle<CR>", { desc = "Toggle UndoTree", silent = true })
      keymap.set("n", "<leader>uf", ":UndotreeFocus<CR>", { desc = "Focus UndoTree", silent = true })
   end,
}