Skip to content

Commit

Permalink
git-worktree: tweak keymaps
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Jan 24, 2025
1 parent affd960 commit 07b2fbf
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions modules/nixvim/plugins/git-worktree/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ in
enable = true;
enableTelescope = config.plugins.telescope.enable;

# TODO: migrate plugin to mkNeovimPlugin
# lazyLoad.settings.keys = [
# "<leader>gw"
# "<leader>fg"
# "<leader>gWc"
# "<leader>gWs"
# FIXME: telescope extension loading issue
# lazyLoad.settings.cmd = [
# "Telescope git_worktree"
# ];
};

Expand All @@ -38,11 +35,7 @@ in
{
mode = "n";
key = "<leader>gWc";
action.__raw = ''
function()
require('telescope').extensions.git_worktree.create_git_worktree()
end
'';
action = "<cmd>Telescope git_worktree create_git_worktree<CR>";
options = {
desc = "Create worktree";
silent = true;
Expand All @@ -51,11 +44,7 @@ in
{
mode = "n";
key = "<leader>gWs";
action.__raw = ''
function()
require('telescope').extensions.git_worktree.git_worktrees()
end
'';
action = "<cmd>Telescope git_worktree git_worktrees<CR>";
options = {
desc = "Switch / Delete worktree";
silent = true;
Expand Down

0 comments on commit 07b2fbf

Please sign in to comment.