From cc4c6467aa9454959e08b6dc800bfbff3eb6fb6d Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 16 Jan 2025 21:15:38 +0000 Subject: [PATCH] restore git-worktree --- .../core/nixvim/plugins/git-workree.nix | 36 +++++-------------- 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/home/common/core/nixvim/plugins/git-workree.nix b/home/common/core/nixvim/plugins/git-workree.nix index 53cc72e..b0085d1 100644 --- a/home/common/core/nixvim/plugins/git-workree.nix +++ b/home/common/core/nixvim/plugins/git-workree.nix @@ -1,4 +1,3 @@ -{pkgs, ...}: { programs.nixvim.keymaps = [ # Switching worktrees @@ -15,30 +14,13 @@ options = {noremap = true;}; } ]; - - programs.nixvim.extraPlugins = [ - - (pkgs.vimUtils.buildVimPlugin - { - name = "git-worktree.nvim"; - src = pkgs.fetchFromGitHub { - owner = "glow.nvim"; - repo = "git-worktree.nvim"; - rev = "bac72c2"; - sha256 = ""; - }; - }) - ]; - - programs.nixvim.extraConfigLua = '' - ''; - # programs.nixvim.plugins.git-worktree = { - # enable = true; - # enableTelescope = true; - # autopush = true; - # changeDirectoryCommand = "cd"; - # clearJumpsOnChange = true; - # updateOnChange = true; - # updateOnChangeCommand = "e ."; - # }; + programs.nixvim.plugins.git-worktree = { + enable = true; + enableTelescope = true; + autopush = true; + changeDirectoryCommand = "cd"; + clearJumpsOnChange = true; + updateOnChange = true; + updateOnChangeCommand = "e ."; + }; }