Files
dotfiles/.config/nvim/lua/telescope/_extensions/worktree.lua
T
unkin-agent 05a642b7a9 feat(nvim): add git worktree picker that follows open buffers
Adds a telescope picker over 'git worktree list --porcelain'. Selecting an
entry cds to that worktree and re-points every open buffer at the same
relative path there, keeping cursor position and refusing to clobber
unsaved work.

Signed-off-by: unkin-agent <unkin-agent@unkin.net>
2026-09-05 11:19:42 +10:00

15 lines
302 B
Lua

--[[ telescope/_extensions/worktree.lua ]]
local telescope = require('telescope')
return telescope.register_extension({
exports = {
worktree = function(opts)
require('func.worktree').pick(opts)
end,
list = function(opts)
require('func.worktree').pick(opts)
end,
},
})