vimPlugins.image-nvim: init at 2023-07-17
Depends on https://github.com/NixOS/nixpkgs/pull/243687
This commit is contained in:
parent
ecaa0503ea
commit
bb72dfdb81
@ -4244,6 +4244,18 @@ final: prev:
|
|||||||
meta.homepage = "https://github.com/edwinb/idris2-vim/";
|
meta.homepage = "https://github.com/edwinb/idris2-vim/";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
image-nvim = buildVimPluginFrom2Nix {
|
||||||
|
pname = "image.nvim";
|
||||||
|
version = "2023-07-17";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "3rd";
|
||||||
|
repo = "image.nvim";
|
||||||
|
rev = "24c312191ca6bc04e45610a7bcb984d3bf208820";
|
||||||
|
sha256 = "1fy024nd01wryrasibc4b8divcfzx3a7xxfzx968l4a4l1q3l6vc";
|
||||||
|
};
|
||||||
|
meta.homepage = "https://github.com/3rd/image.nvim/";
|
||||||
|
};
|
||||||
|
|
||||||
impatient-nvim = buildVimPluginFrom2Nix {
|
impatient-nvim = buildVimPluginFrom2Nix {
|
||||||
pname = "impatient.nvim";
|
pname = "impatient.nvim";
|
||||||
version = "2023-05-05";
|
version = "2023-05-05";
|
||||||
|
@ -125,6 +125,7 @@
|
|||||||
|
|
||||||
# must be lua51Packages
|
# must be lua51Packages
|
||||||
, luaPackages
|
, luaPackages
|
||||||
|
, luajitPackages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
self: super: {
|
self: super: {
|
||||||
@ -600,6 +601,24 @@ self: super: {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
image-nvim = super.image-nvim.overrideAttrs {
|
||||||
|
dependencies = with self; [
|
||||||
|
nvim-treesitter
|
||||||
|
nvim-treesitter-parsers.markdown_inline
|
||||||
|
nvim-treesitter-parsers.norg
|
||||||
|
];
|
||||||
|
|
||||||
|
# Add magick to package.path
|
||||||
|
patches = [ ./patches/image-nvim/magick.patch ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace lua/image/magick.lua \
|
||||||
|
--replace @nix_magick@ ${luajitPackages.magick}
|
||||||
|
'';
|
||||||
|
|
||||||
|
nvimRequireCheck = "image";
|
||||||
|
};
|
||||||
|
|
||||||
jedi-vim = super.jedi-vim.overrideAttrs {
|
jedi-vim = super.jedi-vim.overrideAttrs {
|
||||||
# checking for python3 support in vim would be neat, too, but nobody else seems to care
|
# checking for python3 support in vim would be neat, too, but nobody else seems to care
|
||||||
buildInputs = [ python3.pkgs.jedi ];
|
buildInputs = [ python3.pkgs.jedi ];
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
diff --git a/lua/image/magick.lua b/lua/image/magick.lua
|
||||||
|
index a0c5a64..e3b57d4 100644
|
||||||
|
--- a/lua/image/magick.lua
|
||||||
|
+++ b/lua/image/magick.lua
|
||||||
|
@@ -1,3 +1,6 @@
|
||||||
|
+package.path = package.path .. ";@nix_magick@/share/lua/5.1/?/init.lua;"
|
||||||
|
+package.path = package.path .. ";@nix_magick@/share/lua/5.1/?.lua;"
|
||||||
|
+
|
||||||
|
local has_magick, magick = pcall(require, "magick")
|
||||||
|
|
||||||
|
---@return MagickImage
|
@ -355,6 +355,7 @@ https://github.com/mboughaba/i3config.vim/,,
|
|||||||
https://github.com/cocopon/iceberg.vim/,,
|
https://github.com/cocopon/iceberg.vim/,,
|
||||||
https://github.com/idris-hackers/idris-vim/,,
|
https://github.com/idris-hackers/idris-vim/,,
|
||||||
https://github.com/edwinb/idris2-vim/,,
|
https://github.com/edwinb/idris2-vim/,,
|
||||||
|
https://github.com/3rd/image.nvim/,HEAD,
|
||||||
https://github.com/lewis6991/impatient.nvim/,,
|
https://github.com/lewis6991/impatient.nvim/,,
|
||||||
https://github.com/smjonas/inc-rename.nvim/,HEAD,
|
https://github.com/smjonas/inc-rename.nvim/,HEAD,
|
||||||
https://github.com/nishigori/increment-activator/,,
|
https://github.com/nishigori/increment-activator/,,
|
||||||
|
Loading…
Reference in New Issue
Block a user