diff --git a/wrappers/modules/output.nix b/wrappers/modules/output.nix index 614053e7..e81a64e1 100644 --- a/wrappers/modules/output.nix +++ b/wrappers/modules/output.nix @@ -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;