wrappers/output: omit blank neovimRcContent

This commit is contained in:
Matt Sturgeon 2024-05-25 23:46:59 +01:00
parent 1cc2e02fca
commit 883d21d866
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -114,11 +114,14 @@ with lib;
);
customRC =
''
let
hasContent = str: (builtins.match "[[:space:]]*" str) == null;
in
(optionalString (hasContent neovimConfig.neovimRcContent) ''
vim.cmd([[
${neovimConfig.neovimRcContent}
]])
''
'')
+ config.content;
init = helpers.writeLua "init.lua" customRC;