nixpkgs/pkgs/applications/editors/vim/plugins
Matthieu Coudron ce505a3984
vimPlugins: use lua derivation if it exists (#178180)
Neovim plugins are now more often than not written in lua.
One advantage of the lua ecosystem over vim's is the existence of
luarocks and the rockspec format, which allows to specify a package
dependencies formally.
I would like more neovim plugins to have a formal description,
"rockspec" being the current candidate.
This MR allows to use nix lua packages as neovim plugins, so as to enjoy
every benefit that rockspecs bring:
- dependdency discovery
- ability to run test suite
- luarocks versioning
- rockspec metadata

the vim update.py script will check if an attribute with the vim plugin
pname exists in lua51Packages. If it does, it uses
buildNeovimPluginFrom2Nix on it, which modifies the luarocks config to
do an almost flat install (luarocks will install the package in the lua
folder instead of share/5.1/lua etc).
It also calls toVimPlugin on it to get all the vim plugin niceties.

The list of packages that could benefit from this is available at
https://luarocks.org/labels/neovim
but I hope it grows.
2022-06-19 14:18:16 +02:00
..
markdown-preview-nvim vimPlugins.markdown-preview-nvim: add a missing node dependency 2022-06-01 13:27:41 -07:00
patches
vim2nix
aliases.nix
build-vim-plugin.nix vimPlugins: use lua derivation if it exists (#178180) 2022-06-19 14:18:16 +02:00
default.nix vimPlugins: use lua derivation if it exists (#178180) 2022-06-19 14:18:16 +02:00
deprecated.json
generated.nix vimPlugins: use lua derivation if it exists (#178180) 2022-06-19 14:18:16 +02:00
neovim-require-check-hook.sh buildNeovimPluginFrom2Nix: use neovimRequireCheckHook 2022-05-11 10:42:19 +02:00
overrides.nix vimPlugins: remove any gotags reference 2022-06-18 21:23:45 +02:00
readme.md
update-shell.nix
update.py vim/update.py: mark some plugins as neovim ones 2022-05-21 17:05:46 +02:00
vim-command-check-hook.sh buildVimPlugin: add vimCommandCheckHook 2022-04-30 23:54:25 +02:00
vim-gen-doc-hook.sh
vim-plugin-names vimPlugins.catppuccin-vim: init at 2022-06-06 (#177376) 2022-06-15 10:29:21 +02:00
vim-utils.nix vimPlugins: use lua derivation if it exists (#178180) 2022-06-19 14:18:16 +02:00

Instructions for adding Vim plugins to nixpkgs can be found here.