feat: switch from lazy to vim.pack

This commit is contained in:
2026-04-10 14:42:25 +02:00
parent 190b3ecebd
commit 28c45c8390
35 changed files with 1168 additions and 1455 deletions
+4 -19
View File
@@ -1,20 +1,5 @@
local function undo_tree_tab()
vim.cmd.tabnew()
vim.cmd.bprevious()
vim.cmd.UndotreeToggle()
vim.cmd.UndotreeFocus()
end
vim.cmd.packadd("nvim.undotree")
---@type LazyPluginSpec
return {
"mbbill/undotree",
keys = {
{ "<leader>uu", undo_tree_tab, mode = "n" },
},
init = function(_)
vim.g.undotree_WindowLayout = 2
vim.g.undotree_DiffCommand = "diff -u"
vim.g.undotree_SplitWidth = 50
vim.g.undotree_DiffpanelHeight = 20
end,
}
vim.keymap.set("n", "<leader>uu", function()
require("undotree").open({ command = "leftabove40vnew" })
end)