summaryrefslogtreecommitdiff
path: root/fnl/plugins/git-worktree.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/plugins/git-worktree.fnl')
-rw-r--r--fnl/plugins/git-worktree.fnl12
1 files changed, 12 insertions, 0 deletions
diff --git a/fnl/plugins/git-worktree.fnl b/fnl/plugins/git-worktree.fnl
new file mode 100644
index 0000000..8812859
--- /dev/null
+++ b/fnl/plugins/git-worktree.fnl
@@ -0,0 +1,12 @@
+;; Plugins for working with git-worktrees.
+
+(local keys [{1 :<leader>wn
+ 2 "<cmd>lua require('telescope').extensions.git_worktree.git_worktrees()<cr>"
+ :mode :n
+ :desc "Switch between worktrees"}
+ {1 :<leader>we
+ 2 "<cmd>lua require('telescope').extensions.git_worktree.create_git_worktree()<cr>"
+ :mode :n
+ :desc "Create a worktree"}])
+
+{1 :ThePrimeagen/git-worktree.nvim : keys}