From 6eb6a220e2967819e5fbfcc8a0b7d981465445c5 Mon Sep 17 00:00:00 2001 From: teesh3rt Date: Thu, 12 Feb 2026 09:53:41 +0200 Subject: [PATCH] feat: fugit2, a different, nicer neogit --- modules/base/neovim.nix | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/modules/base/neovim.nix b/modules/base/neovim.nix index 8cd59d6..750869c 100644 --- a/modules/base/neovim.nix +++ b/modules/base/neovim.nix @@ -14,7 +14,6 @@ programs.lazyvim = { enable = true; - pluginSource = "nixpkgs"; extraPackages = with pkgs; [ nixd alejandra @@ -23,8 +22,27 @@ plugins.catppuccin = '' return { "LazyVim/LazyVim", opts = { colorscheme = "catppuccin" } } ''; - plugins.neogit = '' - return { "NeogitOrg/neogit", opts = {}, keys = { { "gg", "Neogit" } } } + plugins.fugit = '' + return { + 'SuperBo/fugit2.nvim', + build = true, + opts = { + libgit2_path = "${pkgs.libgit2}/lib/libgit2.so" + }, + dependencies = { + 'MunifTanjim/nui.nvim', + 'nvim-tree/nvim-web-devicons', + 'nvim-lua/plenary.nvim', + { + 'chrisgrieser/nvim-tinygit', + dependencies = { 'stevearc/dressing.nvim' } + }, + }, + cmd = { 'Fugit2', 'Fugit2Diff', 'Fugit2Graph' }, + keys = { + { 'gg', mode = 'n', 'Fugit2' } + } + } ''; plugins.nix = '' return {