1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 20:29:47 +01:00
home-manager/modules
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
..
accounts email: add signature delimiter 2022-12-04 09:34:22 +01:00
config treewide: replace <link> by <xref> where appropriate 2022-08-26 00:07:08 +02:00
i18n/input-method im/fcitx5: add GLFW_IM_MODULE session variable 2022-10-16 21:42:32 +02:00
launchd treewide: fix typos 2022-12-05 12:58:02 +01:00
lib clipman: add module 2022-12-28 23:02:08 +01:00
lib-bash lib/bash: remove unused Bash library files 2022-10-13 11:56:46 +02:00
misc clipman: add module 2022-12-28 23:02:08 +01:00
po Translate using Weblate (Italian) 2022-12-16 16:37:31 +01:00
programs neovim: fix extraLuaPackages type. (#3533) 2022-12-29 01:48:45 +01:00
services clipman: add module 2022-12-28 23:02:08 +01:00
targets treewide: fix typos 2022-12-05 12:58:02 +01:00
default.nix Add lib argument to homeManagerConfiguration (#2753) 2022-04-17 18:14:41 -04:00
files.nix nix: add support for nix profile 2022-03-26 15:11:28 +01:00
home-environment.nix home-environment: explicitly use coreutils 2022-12-23 22:40:33 +01:00
manual.nix format: update and remove exceptions (#3029) 2022-06-16 14:13:06 +02:00
modules.nix clipman: add module 2022-12-28 23:02:08 +01:00
systemd-activate.rb Revert "systemd: use sd-switch" 2020-08-04 19:38:14 +02:00
systemd-activate.sh Revert "systemd: use sd-switch" 2020-08-04 19:38:14 +02:00
systemd.nix treewide: replace replaceChars with replaceStrings 2022-12-16 16:34:59 +01:00
xresources.nix Replace usage of literalExample 2021-10-13 00:16:10 +02:00
xsession.nix xsession: add xplugd service to accompany setxkbmap (#2450) 2021-12-23 15:38:44 -05:00