Skip to content

Commit 3b60756

Browse files
authored
fix(wrapperModules.neovim): default value (#192)
prevents generation of extra items than expected in the lua init sequence
1 parent 479aead commit 3b60756

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

wrapperModules/n/neovim/module.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@ in
448448
'';
449449
};
450450
config = lib.mkOption {
451-
type = types.lines;
452-
default = "";
451+
type = types.nullOr types.lines;
452+
default = null;
453453
description = ''
454454
A snippet of config for this spec.
455455
'';

wrapperModules/n/neovim/normalize.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ in
223223
{
224224
inherit hasFennel mappedSpecs;
225225
infoPluginInitMain = lib.pipe mappedSpecs [
226-
(builtins.filter (v: v.config or null != null))
226+
(builtins.filter (v: v.config or null != null && v.config or "" != ""))
227227
(map (
228228
v:
229229
let

0 commit comments

Comments
 (0)