nvim: undotree: switched from vim commands to lua function calls

This commit is contained in:
kalmenn 2023-12-17 20:32:38 +01:00
parent 6f1a7b61f5
commit 55391c3fc3
Signed by: kalmenn
GPG key ID: DFF253360BF8471F

View file

@ -1,6 +1,12 @@
return { return {
"mbbill/undotree", "mbbill/undotree",
keys = { keys = {
{ "<C-u>", "<cmd>UndotreeToggle<cr><cmd>UndotreeFocus<cr>" }, {
"<C-u>",
function()
vim.cmd.UndotreeToggle();
vim.cmd.UndotreeFocus();
end
},
}, },
} }