mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2025-10-21 20:10:41 +00:00
11 lines
271 B
Lua
11 lines
271 B
Lua
if not pcall(require, "git-worktree") then
|
|
return
|
|
end
|
|
|
|
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)
|