aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/plugins/worktree.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/alpha/plugins/worktree.lua')
-rw-r--r--lua/alpha/plugins/worktree.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/lua/alpha/plugins/worktree.lua b/lua/alpha/plugins/worktree.lua
new file mode 100644
index 0000000..bd7c923
--- /dev/null
+++ b/lua/alpha/plugins/worktree.lua
@@ -0,0 +1,11 @@
+return {
+ "ThePrimeagen/git-worktree.nvim",
+ keys = {
+ { "<leader>gt", function() require("telescope").extensions.git_worktree.git_worktrees() end },
+ { "<leader>gn", function() require("telescope").extensions.git_worktree.create_git_worktree() end },
+ },
+ config = function()
+ require("git-worktree").setup({})
+ require("telescope").load_extension("git_worktree")
+ end,
+}