plugin: undotree

This commit is contained in:
krolyxon 2023-01-23 22:55:42 +05:30
parent df7624ba30
commit 1eee2a9393
3 changed files with 17 additions and 0 deletions

View File

@ -109,6 +109,7 @@ M.kterm = {
}, },
}, },
} }
M.telescope = { M.telescope = {
plugin = true, plugin = true,
@ -131,6 +132,14 @@ M.telescope = {
}, },
} }
M.undotree = {
plugin = true,
n = {
-- toggle
["<leader>u"] = { "<cmd> UndotreeToggle <CR>", "toggle undotree"},
},
}
M.whichkey = { M.whichkey = {
plugin = true, plugin = true,

View File

@ -39,6 +39,7 @@ opt.shortmess:append "sI"
opt.signcolumn = "yes" opt.signcolumn = "yes"
opt.termguicolors = true opt.termguicolors = true
opt.timeoutlen = 400 opt.timeoutlen = 400
opt.undofile = true
-- interval for writing swap file to disk, also used by gitsigns -- interval for writing swap file to disk, also used by gitsigns
opt.updatetime = 250 opt.updatetime = 250

View File

@ -141,6 +141,13 @@ local plugins = {
end, end,
}, },
["mbbill/undotree"] = {
cmd = "UndotreeToggle",
init = function ()
require("core.utils").load_mappings "undotree"
end,
},
["krolyxon/kterm"] = { ["krolyxon/kterm"] = {
config = function() config = function()
require "plugins.configs.kterm" require "plugins.configs.kterm"