mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
wrappers/output: omit blank neovimRcContent
This commit is contained in:
parent
1cc2e02fca
commit
883d21d866
1 changed files with 5 additions and 2 deletions
|
@ -114,11 +114,14 @@ with lib;
|
||||||
);
|
);
|
||||||
|
|
||||||
customRC =
|
customRC =
|
||||||
''
|
let
|
||||||
|
hasContent = str: (builtins.match "[[:space:]]*" str) == null;
|
||||||
|
in
|
||||||
|
(optionalString (hasContent neovimConfig.neovimRcContent) ''
|
||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
${neovimConfig.neovimRcContent}
|
${neovimConfig.neovimRcContent}
|
||||||
]])
|
]])
|
||||||
''
|
'')
|
||||||
+ config.content;
|
+ config.content;
|
||||||
|
|
||||||
init = helpers.writeLua "init.lua" customRC;
|
init = helpers.writeLua "init.lua" customRC;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue