21 lines
651 B
Lua
21 lines
651 B
Lua
require("undotree").setup {
|
|
float_diff = true,
|
|
layout = "left_bottom",
|
|
position = "left",
|
|
ignore_filetype = { "undotree", "undotreeDiff", "qf", "TelescopePrompt", "spectre_panel", "tsplayground" },
|
|
window = {
|
|
winblend = 30,
|
|
},
|
|
keymaps = {
|
|
["move_next"] = "j",
|
|
["move_prev"] = "k",
|
|
["move2parent"] = "gj",
|
|
["move_change_next"] = "J",
|
|
["move_change_prev"] = "K",
|
|
["action_enter"] = "<cr>",
|
|
["enter_diffbuf"] = "p", -- is defined for both undotree and preview buffers, so it works as a toggle
|
|
["quit"] = "q", -- is defined for both undotree and preview buffers
|
|
["update_undotree_view"] = "S",
|
|
},
|
|
}
|