Skip to content

Commit

Permalink
vimPlugins.fugit2-nvim: init at 2024-12-19 (#367786)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Dec 24, 2024
2 parents e905913 + e8fe110 commit 8812fb6
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkgs/applications/editors/vim/plugins/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
19 changes: 19 additions & 0 deletions pkgs/applications/editors/vim/plugins/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
jq,
khard,
languagetool,
libgit2,
llvmPackages,
meson,
neovim-unwrapped,
Expand Down Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions pkgs/applications/editors/vim/plugins/vim-plugin-names
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8812fb6

Please sign in to comment.