From 86c0c3694c93025dfec23f27266905c12f446a4e Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Tue, 22 Aug 2023 19:43:07 +0100 Subject: Initial commit --- .config/nvim/lua/pluginsconfig/undotree.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .config/nvim/lua/pluginsconfig/undotree.lua (limited to '.config/nvim/lua/pluginsconfig/undotree.lua') diff --git a/.config/nvim/lua/pluginsconfig/undotree.lua b/.config/nvim/lua/pluginsconfig/undotree.lua new file mode 100644 index 0000000..72e342a --- /dev/null +++ b/.config/nvim/lua/pluginsconfig/undotree.lua @@ -0,0 +1,23 @@ +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", + [''] = "action_enter", + ['p'] = "enter_diffbuf", + ['q'] = "quit", + }, +}) -- cgit v1.2.3