Skip to content

Commit

Permalink
re-install vim-fugitive
Browse files Browse the repository at this point in the history
  • Loading branch information
gvolpe committed Mar 30, 2024
1 parent 046e158 commit eb528d2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,13 @@
url = github:kyazdani42/nvim-web-devicons;
flake = false;
};

# Git
vim-fugitive = {
url = github:tpope/vim-fugitive;
flake = false;
};

gitsigns-nvim = {
url = github:lewis6991/gitsigns.nvim;
flake = false;
Expand Down
3 changes: 2 additions & 1 deletion modules/git/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ in
config =
mkIf cfg.enable {
vim.startPlugins =
withPlugins cfg.gitsigns.enable [ pkgs.neovimPlugins.gitsigns-nvim ];
(withPlugins cfg.enable [ pkgs.neovimPlugins.vim-fugitive ]) ++
(withPlugins (cfg.enable && cfg.gitsigns.enable) [ pkgs.neovimPlugins.gitsigns-nvim ]);

vim.luaConfigRC = mkIf cfg.gitsigns.enable ''
-- GitSigns setup
Expand Down

0 comments on commit eb528d2

Please sign in to comment.