Skip to content

Commit

Permalink
vimPlugins.stylish-nvim: init at 2022-02-11
Browse files Browse the repository at this point in the history
  • Loading branch information
teto committed May 11, 2022
1 parent db49659 commit 8fc305d
Show file tree
Hide file tree
Showing 2 changed files with 22 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 @@ -6326,6 +6326,18 @@ final: prev:
meta.homepage = "https://github.com/darfink/starsearch.vim/";
};

stylish-nvim = buildVimPluginFrom2Nix {
pname = "stylish.nvim";
version = "2022-02-11";
src = fetchFromGitHub {
owner = "teto";
repo = "stylish.nvim";
rev = "ea745ebf446410ef3d75f9890b2e7fd59be42e19";
sha256 = "1kl2g32ls4s7kpr6395rdmsa7gdzkpfiypphmnxg8n75n0b0mwb3";
};
meta.homepage = "https://github.com/teto/stylish.nvim/";
};

suda-vim = buildVimPluginFrom2Nix {
pname = "suda.vim";
version = "2022-02-10";
Expand Down
10 changes: 10 additions & 0 deletions pkgs/applications/editors/vim/plugins/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
, ycmd
, zoxide
, nodejs
, xdotool
, xorg

# test dependencies
, neovim-unwrapped
Expand Down Expand Up @@ -606,6 +608,14 @@ self: super: {
'';
};

stylish-nvim = super.stylish-nvim.overrideAttrs (old: {
postPatch = ''
substituteInPlace lua/stylish/common/mouse_hover_handler.lua --replace xdotool ${xdotool}/bin/xdotool
substituteInPlace lua/stylish/components/menu.lua --replace xdotool ${xdotool}/bin/xdotool
substituteInPlace lua/stylish/components/menu.lua --replace xwininfo ${xorg.xwininfo}/bin/xwininfo
'';
});

sved =
let
# we put the script in its own derivation to benefit the magic of wrapGAppsHook
Expand Down

0 comments on commit 8fc305d

Please sign in to comment.