summaryrefslogtreecommitdiffstats
path: root/lua/conf/plugins/undotree.lua
blob: e649d572387b63b97eed1a2671e2a2c62dc15ddf (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
}