From 07b2fbf726e3625124cecba5e5477c81626fb684 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Fri, 24 Jan 2025 08:34:37 -0600 Subject: [PATCH] git-worktree: tweak keymaps --- .../nixvim/plugins/git-worktree/default.nix | 21 +++++-------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/modules/nixvim/plugins/git-worktree/default.nix b/modules/nixvim/plugins/git-worktree/default.nix index 7425371..76d78f4 100644 --- a/modules/nixvim/plugins/git-worktree/default.nix +++ b/modules/nixvim/plugins/git-worktree/default.nix @@ -8,12 +8,9 @@ in enable = true; enableTelescope = config.plugins.telescope.enable; - # TODO: migrate plugin to mkNeovimPlugin - # lazyLoad.settings.keys = [ - # "gw" - # "fg" - # "gWc" - # "gWs" + # FIXME: telescope extension loading issue + # lazyLoad.settings.cmd = [ + # "Telescope git_worktree" # ]; }; @@ -38,11 +35,7 @@ in { mode = "n"; key = "gWc"; - action.__raw = '' - function() - require('telescope').extensions.git_worktree.create_git_worktree() - end - ''; + action = "Telescope git_worktree create_git_worktree"; options = { desc = "Create worktree"; silent = true; @@ -51,11 +44,7 @@ in { mode = "n"; key = "gWs"; - action.__raw = '' - function() - require('telescope').extensions.git_worktree.git_worktrees() - end - ''; + action = "Telescope git_worktree git_worktrees"; options = { desc = "Switch / Delete worktree"; silent = true;