1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00
home-manager/tests/modules/programs/neovim
Ramses a993eac106
neovim: fix extraLuaPackages type. (#3533)
Assigning to `programs.neovim.extraLuaPackages` a function taking a lua package set as input
and returning a list of packages, as described in the documentation,
threw an error because the rest of the code assumed that the value was always a plain list.
Using `lib.types.coercedTo`, we can accept such functions, as per the documentation,
as well as plain lists, which we then convert to a function ignoring its input argument.
We print a warning when a plain list is assigned, since the function
form is preferred, as it ensures that the right lua package set is used.

For the lua packages, we also get the lua package set from the
finalPackage, to make sure that we are always using the same package set
as the actual unwrapped neovim package being built.

For `programs.neovim.extraPythonPackages` I did the same.

I updated the test case so that we test both ways of setting these options.
2022-12-29 01:48:45 +01:00
..
coc-config.expected neovim: Add coc support (#2154) 2021-07-25 22:40:07 -04:00
coc-config.nix neovim: Add coc support (#2154) 2021-07-25 22:40:07 -04:00
default.nix neovim runtime (#3168) 2022-08-23 22:02:05 +02:00
no-init.nix neovim: avoid aliased package 2022-12-04 13:13:19 +01:00
plugin-config.nix neovim: Source neovimRcContent directly from store (#3444) 2022-11-30 17:19:31 +01:00
runtime.nix neovim: fix extraLuaPackages type. (#3533) 2022-12-29 01:48:45 +01:00