summaryrefslogtreecommitdiffstats
path: root/lua/conf/plugins/undotree.lua
blob: fa57defe0b588f9ca9c03be2dda6b4ef745a3a3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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
}