summaryrefslogtreecommitdiff
path: root/fnl/plugins/git-worktree.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-05 01:50:20 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-05 01:50:20 +0100
commit2a94573f54c69a9af7536586ab2c03eb88bda5e7 (patch)
tree48e430773d56baef8c751fb8a6b4d76303b61636 /fnl/plugins/git-worktree.fnl
parent16198ca3bcd0ddd61f8d18280769c6f226b2b7ce (diff)
Refactor
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}