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