SoloVim/lua/plugins/worktree.lua
2024-01-24 21:28:12 +02:00

12 lines
300 B
Lua

return {
"ThePrimeagen/git-worktree.nvim",
config = function()
local worktree = require("git-worktree")
worktree.on_tree_change(function(op, metadata)
if op == worktree.Operations.Switch then
print("Switched from " .. metadata.prev_path .. " to " .. metadata.path)
end
end)
end,
}