From fef819348d09bf031a87a621b667b93ff26d38c5 Mon Sep 17 00:00:00 2001 From: teesh3rt Date: Thu, 12 Feb 2026 09:51:00 +0200 Subject: [PATCH] feat: fugit2, a different, nicer neogit --- modules/base/neovim.nix | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/modules/base/neovim.nix b/modules/base/neovim.nix index 8cd59d6..1b36c64 100644 --- a/modules/base/neovim.nix +++ b/modules/base/neovim.nix @@ -14,17 +14,30 @@ programs.lazyvim = { enable = true; - pluginSource = "nixpkgs"; - extraPackages = with pkgs; [ - nixd - alejandra - statix - ]; 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 {