aboutsummaryrefslogblamecommitdiff
path: root/.config/nvim/lua/pluginsconfig/undotree.lua
blob: 72e342ada69308cd46d10b38d7362ac2eaa09ccd (plain) (tree)






















                                                                                                             
local present, undotree = pcall(require, "undotree")

if not present then
  return
end

undotree.setup({
  float_diff = true,  -- using float window previews diff, set this `true` will disable layout option
  layout = "left_bottom", -- "left_bottom", "left_left_bottom"
  ignore_filetype = { 'Undotree', 'UndotreeDiff', 'qf', 'TelescopePrompt', 'spectre_panel', 'tsplayground' },
  window = {
    winblend = 0,
  },
  keymaps = {
    ['j'] = "move_next",
    ['k'] = "move_prev",
    ['J'] = "move_change_next",
    ['K'] = "move_change_prev",
    ['<cr>'] = "action_enter",
    ['p'] = "enter_diffbuf",
    ['q'] = "quit",
  },
})