From e8fe110d76d1c02f2dd1a6257b74a59ecac51353 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 23 Dec 2024 20:52:49 -0600 Subject: [PATCH] vimPlugins.fugit2-nvim: init at 2024-12-19 --- .../editors/vim/plugins/generated.nix | 12 ++++++++++++ .../editors/vim/plugins/overrides.nix | 19 +++++++++++++++++++ .../editors/vim/plugins/vim-plugin-names | 1 + 3 files changed, 32 insertions(+) diff --git a/pkgs/applications/editors/vim/plugins/generated.nix b/pkgs/applications/editors/vim/plugins/generated.nix index 0586be14cd937..0ef72ff3e9c48 100644 --- a/pkgs/applications/editors/vim/plugins/generated.nix +++ b/pkgs/applications/editors/vim/plugins/generated.nix @@ -4236,6 +4236,18 @@ final: prev: meta.homepage = "https://github.com/raghur/fruzzy/"; }; + fugit2-nvim = buildVimPlugin { + pname = "fugit2.nvim"; + version = "2024-12-19"; + src = fetchFromGitHub { + owner = "SuperBo"; + repo = "fugit2.nvim"; + rev = "96f729a4bdcf44174c6168f4457b9f3f9229efa2"; + sha256 = "151i92jzmwh2b2h6v85cfrdlnqa9ll49gcrvg1r3hi83yj4dygzr"; + }; + meta.homepage = "https://github.com/SuperBo/fugit2.nvim/"; + }; + fugitive-gitlab-vim = buildVimPlugin { pname = "fugitive-gitlab.vim"; version = "2024-11-13"; diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index 8997249a61fbf..a980dc9584b80 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -33,6 +33,7 @@ jq, khard, languagetool, + libgit2, llvmPackages, meson, neovim-unwrapped, @@ -1034,6 +1035,24 @@ in nvimRequireCheck = "fuzzy_nvim"; }; + fugit2-nvim = super.fugit2-nvim.overrideAttrs (oa: { + # Requires web-devicons but mini.icons can mock them up + nativeCheckInputs = oa.nativeCheckInputs ++ [ + self.nvim-web-devicons + ]; + dependencies = with self; [ + nui-nvim + plenary-nvim + ]; + # Patch libgit2 library dependency + postPatch = '' + substituteInPlace lua/fugit2/libgit2.lua \ + --replace-fail \ + 'M.library_path = "libgit2"' \ + 'M.library_path = "${lib.getLib libgit2}/lib/libgit2${stdenv.hostPlatform.extensions.sharedLibrary}"' + ''; + }); + fzf-checkout-vim = super.fzf-checkout-vim.overrideAttrs { # The plugin has a makefile which tries to run tests in a docker container. # This prevents it. diff --git a/pkgs/applications/editors/vim/plugins/vim-plugin-names b/pkgs/applications/editors/vim/plugins/vim-plugin-names index 3184ecc5b400a..86c4d7989bdbe 100644 --- a/pkgs/applications/editors/vim/plugins/vim-plugin-names +++ b/pkgs/applications/editors/vim/plugins/vim-plugin-names @@ -350,6 +350,7 @@ https://github.com/megaannum/forms/,, https://github.com/rubiin/fortune.nvim/,HEAD, https://github.com/rafamadriz/friendly-snippets/,, https://github.com/raghur/fruzzy/,, +https://github.com/SuperBo/fugit2.nvim/,HEAD, https://github.com/shumphrey/fugitive-gitlab.vim/,, https://github.com/BeneCollyridam/futhark-vim/,, https://github.com/tzachar/fuzzy.nvim/,HEAD,