nixpkgs/pkgs/applications/editors/neovim
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
..
gnvim treewide: fix cargoSha256/cargoHash 2021-05-08 00:36:37 -07:00
neovide neovide: 2022-02-04 -> 0.8.0 (#168770) 2022-04-16 22:59:35 +02:00
ruby_provider neovim-ruby: 0.8.1 -> 0.9.0 update some Neovim Ruby gem versions 2022-04-22 17:48:20 +02:00
build-neovim-plugin.nix vimPlugins: use lua derivation if it exists (#178180) 2022-06-19 14:18:16 +02:00
default.nix treewide: reduce maintenance workload for ma27 2022-06-19 12:07:43 +02:00
neovim-override.vim neovim.tests: added more tests 2021-06-09 21:45:25 +02:00
neovim-qt.nix neovim-qt: add qtsvg depedency (#135683) 2021-08-26 00:59:47 +02:00
neovim-remote.nix neovim-remote: 2.4.0 -> 2.5.1 2022-05-22 15:37:47 +02:00
qt.nix neovim, neovimUtils, neovim-qt: drop python2 support 2021-05-02 22:43:53 +02:00
system_rplugin_manifest.patch
tests.nix vimUtils: deprecate configure.pathogen (#154814) 2022-06-13 15:25:46 +02:00
utils.nix vimPlugins: use lua derivation if it exists (#178180) 2022-06-19 14:18:16 +02:00
wrapper.nix neovim: provide default value for python3Env (#147241) 2021-12-01 10:15:46 +01:00