plugins/dashboard: better rawLua support for header

This commit is contained in:
Austin Horstman 2024-11-30 16:16:28 -06:00
parent 060f4b4c38
commit 86ff391e9e
No known key found for this signature in database
2 changed files with 47 additions and 1 deletions

View file

@ -246,7 +246,7 @@ helpers.neovim-plugin.mkNeovimPlugin {
};
header =
helpers.defaultNullOpts.mkListOf types.str
helpers.defaultNullOpts.mkNullableWithRaw (with types; either str (listOf (maybeRaw str)))
[
""
" "

View file

@ -203,4 +203,50 @@
};
};
};
header-raw = {
plugins.dashboard = {
enable = true;
settings.config.header.__raw = ''
function()
return {
"",
" ",
" ",
" ",
" ",
" ",
" ",
""
}
end
'';
};
};
header-line-raw = {
plugins.dashboard = {
enable = true;
settings.config.header = [
{
__raw = ''
function()
return {
"",
" ",
" ",
" ",
" ",
" ",
" ",
""
}
end
'';
}
];
};
};
}