1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-28 04:39:48 +01:00
home-manager/tests/modules/programs
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
..
abook tests: add option test.stubs 2021-09-26 23:26:38 +02:00
aerc Add module for aerc (#3070) 2022-08-11 23:08:28 +02:00
alacritty tests: add option test.stubs 2021-09-26 23:26:38 +02:00
alot tests: add option test.stubs 2021-09-26 23:26:38 +02:00
aria2 tests: add option test.stubs 2021-09-26 23:26:38 +02:00
atuin fish: always run fish_indent 2022-12-05 23:16:39 +01:00
autojump tests: add option test.stubs 2021-09-26 23:26:38 +02:00
autorandr autorandr: add filter option (#2795) 2022-03-17 13:45:04 +01:00
bash bash: support bash completion 2022-08-07 15:25:44 +02:00
bat tests: add option test.stubs 2021-09-26 23:26:38 +02:00
borgmatic borgmatic: allow lists in extraConfig 2022-12-13 23:34:49 +01:00
bottom bottom: fix empty-settings test on darwin (#2603) 2022-01-01 20:28:45 -07:00
broot broot: simplify test slightly 2022-12-28 20:49:19 +01:00
browserpass browserpass: add brave support 2022-03-27 01:12:50 +01:00
btop btop: add module 2022-09-05 14:34:37 +02:00
dircolors dircolors: apply extraConfig after settings (#1890) 2021-03-31 22:01:02 +02:00
direnv direnv: enable nushell integration 2022-12-28 21:09:31 +01:00
emacs emacs: allow extraConfig to reference extraPackages 2022-05-26 00:34:17 +02:00
feh tests: add option test.stubs 2021-09-26 23:26:38 +02:00
firefox firefox: fix expected bookmarks in test 2022-12-04 13:29:25 +01:00
fish fish: always run fish_indent 2022-12-05 23:16:39 +01:00
foot foot: set OOMPolicy=continue for foot server (#2749) 2022-02-22 20:15:28 +01:00
gallery-dl gallery-dl: add module 2022-09-09 11:56:37 +02:00
getmail getmail: fix configuration mailboxes generation (#1719) 2021-03-01 17:58:18 -05:00
gh gh: add extensions option 2022-08-12 20:49:50 +02:00
git git: add config helper for hooks 2022-09-08 11:05:07 +02:00
gnome-terminal tests: add option test.stubs 2021-09-26 23:26:38 +02:00
gpg gpg: update hash in test 2022-12-08 16:36:10 +01:00
helix helix: fix test 2022-04-24 09:17:04 +02:00
hexchat treewide: use liberachat and OFTC in examples 2022-12-05 10:38:54 +01:00
himalaya himalaya: 0.6.x config updates 2022-12-04 09:34:47 +01:00
htop htop: fix darwin defaults 2022-05-19 23:33:20 +02:00
hyfetch hyfetch: prevent writing config with default/empty settings (#3124) 2022-08-01 19:58:38 -04:00
i3status i3status: add package attribute 2022-10-20 10:04:30 +02:00
i3status-rust i3status-rust: fix tests 2022-12-13 22:10:22 +01:00
irssi irssi: add option for SASL external authentication 2022-10-31 09:28:49 +01:00
k9s k9s: add module 2022-10-25 00:05:50 +02:00
kakoune kakoune: clean up tests 2021-11-07 09:43:42 +01:00
kitty kitty: produce fewer empty lines 2022-08-26 00:17:05 +02:00
kodi kodi: add module 2022-01-26 23:56:25 +01:00
less less: store 'lesskey' under XDG_CONFIG_HOME 2021-12-08 11:23:56 +01:00
lf tests: add option test.stubs 2021-09-26 23:26:38 +02:00
lieer tests: add option test.stubs 2021-09-26 23:26:38 +02:00
looking-glass-client looking-glass-client: add module 2022-10-18 10:12:15 +02:00
man man: support building manual page index cache 2020-09-13 20:52:08 +02:00
mangohud tests: add option test.stubs 2021-09-26 23:26:38 +02:00
mbsync mbsync: extend config type with list of strings 2022-09-20 01:24:21 +02:00
micro micro: add module 2022-06-24 19:19:11 +02:00
mpv mpv: temporarily disable tests 2021-11-25 22:29:47 +01:00
mu mu: use absolute path to mu in activation block 2022-11-07 15:09:31 +01:00
mujmap mujmap: add module 2022-06-22 00:33:10 +02:00
ncmpcpp tests: add option test.stubs 2021-09-26 23:26:38 +02:00
ncmpcpp-linux tests: add option test.stubs 2021-09-26 23:26:38 +02:00
ne tests: add option test.stubs 2021-09-26 23:26:38 +02:00
neomutt neomutt: add support for signature command (#2899) 2022-04-29 14:01:53 -06:00
neovim neovim: fix extraLuaPackages type. (#3533) 2022-12-29 01:48:45 +01:00
newsboat tests: add option test.stubs 2021-09-26 23:26:38 +02:00
nheko nheko: add module 2022-09-08 19:09:30 +02:00
nix-index fish: always run fish_indent 2022-12-05 23:16:39 +01:00
nnn tests/nnn: fix tests (#2746) 2022-02-21 14:17:22 -07:00
nushell nushell: support darwin config file locations 2022-12-20 23:57:11 +01:00
oh-my-posh fish: always run fish_indent 2022-12-05 23:16:39 +01:00
pandoc pandoc: fix test case 2022-04-08 00:06:23 +02:00
pet pet: fix settings format issue 2021-11-17 23:42:21 +01:00
pistol pistol: refactor 2022-12-16 17:05:30 +01:00
pls fish: always run fish_indent 2022-12-05 23:16:39 +01:00
powerline-go fish: always run fish_indent 2022-12-05 23:16:39 +01:00
pubs pubs: add module 2022-03-06 10:40:28 +01:00
qutebrowser tests: add option test.stubs 2021-09-26 23:26:38 +02:00
rbw tests: add option test.stubs 2021-09-26 23:26:38 +02:00
readline readline: fix example 2020-02-02 01:20:05 +01:00
rofi rofi: allow extending themes (#2571) 2022-01-09 17:15:24 -05:00
rofi-pass tests: add option test.stubs 2021-09-26 23:26:38 +02:00
sagemath sagemath: add module 2022-01-11 14:38:02 +01:00
sbt sbt: cache passwordCommand output 2022-10-07 00:40:50 +02:00
scmpuff fish: always run fish_indent 2022-12-05 23:16:39 +01:00
sioyek sioyek: enable multiple bindings for the same command 2022-10-08 22:11:55 +02:00
sm64ex tests: add option test.stubs 2021-09-26 23:26:38 +02:00
ssh ssh: add generic Match support for matchBlocks (#2992) 2022-11-27 16:15:32 +01:00
starship tests: add option test.stubs 2021-09-26 23:26:38 +02:00
swaylock swaylock: Add module (#3003) 2022-06-07 21:01:14 +02:00
taskwarrior taskwarrior: make .taskrc writable (#2761) 2022-04-07 13:29:53 -04:00
terminator tests: add option test.stubs 2021-09-26 23:26:38 +02:00
texlive texlive: remove upstream dependency in tests 2020-06-06 16:43:17 +02:00
thunderbird thunderbird: use account id for IMAP directory name 2022-12-04 13:49:29 +01:00
tmate tmate: add module 2022-09-26 00:28:00 +02:00
tmux tmux: add notes to existing keybindings (#2540) (#2742) 2022-03-19 19:12:21 -04:00
topgrade tests: add option test.stubs 2021-09-26 23:26:38 +02:00
vscode vscode: add userTasks test 2022-11-03 10:36:21 +01:00
watson watson: add module 2022-01-22 16:12:34 +01:00
waybar waybar: fix command not found when reloading (#2865) 2022-04-16 18:31:03 -04:00
wezterm wezterm: support color schemes 2022-08-14 20:57:22 +02:00
xmobar tests: add option test.stubs 2021-09-26 23:26:38 +02:00
yt-dlp yt-dlp: add settings option 2022-09-22 00:09:35 +02:00
zplug flake: Expose tests to allow running purely (#3412) 2022-11-27 01:37:24 +01:00
zsh zsh: move sessionVariables from .zshrc to .zshenv (#2708) 2022-02-17 10:20:56 +01:00