Skip to content

Commit

Permalink
vimPlugins.gx-nvim: init at 2025-01-07 (NixOS#372609)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Jan 10, 2025
2 parents 2eb8590 + 7ef83af commit 17e671f
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkgs/applications/editors/vim/plugins/generated.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4918,6 +4918,19 @@ final: prev:
meta.homepage = "https://github.com/junegunn/gv.vim/";
};

gx-nvim = buildVimPlugin {
pname = "gx.nvim";
version = "2025-01-07";
src = fetchFromGitHub {
owner = "chrishrb";
repo = "gx.nvim";
rev = "c7e6a0ace694a098a5248d92a866c290bd2da1cc";
sha256 = "14cjwnsrjdfhqx0hbd6j1b9lm668a6c3f72wklx66vp18qy0pafb";
fetchSubmodules = true;
};
meta.homepage = "https://github.com/chrishrb/gx.nvim/";
};

hardhat-nvim = buildVimPlugin {
pname = "hardhat.nvim";
version = "2024-09-22";
Expand Down
12 changes: 12 additions & 0 deletions pkgs/applications/editors/vim/plugins/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
typescript,
vim,
which,
xdg-utils,
xdotool,
xkb-switch,
xorg,
Expand Down Expand Up @@ -1183,6 +1184,17 @@ in
dependencies = [ self.guard-nvim ];
};

gx-nvim = super.gx-nvim.overrideAttrs {
patches = lib.optionals stdenv.hostPlatform.isLinux [
(substituteAll {
src = ./patches/gx-nvim/fix-paths.patch;
inherit xdg-utils;
})
];

nvimRequireCheck = "gx";
};

hardhat-nvim = super.hardhat-nvim.overrideAttrs {
dependencies = with self; [
overseer-nvim
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/lua/gx/init.lua b/lua/gx/init.lua
index 12272d4..c51771a 100644
--- a/lua/gx/init.lua
+++ b/lua/gx/init.lua
@@ -73,7 +73,7 @@ local function get_open_browser_app()
if sysname == "Darwin" then
app = "open"
elseif sysname == "Linux" then
- app = "xdg-open"
+ app = "@xdg-utils@/bin/xdg-open"
elseif sysname == "Windows_NT" then
app = "powershell.exe"
end
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 @@ -407,6 +407,7 @@ https://github.com/nvimdev/guard.nvim/,HEAD,
https://github.com/nmac427/guess-indent.nvim/,HEAD,
https://github.com/sjl/gundo.vim/,,
https://github.com/junegunn/gv.vim/,,
https://github.com/chrishrb/gx.nvim/,HEAD,
https://github.com/TheSnakeWitcher/hardhat.nvim/,HEAD,
https://github.com/m4xshen/hardtime.nvim/,HEAD,
https://git.sr.ht/~sircmpwn/hare.vim,HEAD,
Expand Down

0 comments on commit 17e671f

Please sign in to comment.