mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-01 00:24:59 +02:00
modules: let extraPlugins accept null values
This commit is contained in:
parent
167167e4b3
commit
17905dec3d
1 changed files with 2 additions and 1 deletions
|
@ -29,9 +29,10 @@ in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
extraPlugins = mkOption {
|
extraPlugins = mkOption {
|
||||||
type = with types; listOf (either package pluginWithConfigType);
|
type = with types; listOf (nullOr (either package pluginWithConfigType));
|
||||||
default = [ ];
|
default = [ ];
|
||||||
description = "List of vim plugins to install";
|
description = "List of vim plugins to install";
|
||||||
|
apply = builtins.filter (p: p != null);
|
||||||
};
|
};
|
||||||
|
|
||||||
extraPackages = mkOption {
|
extraPackages = mkOption {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue