From 60e2a1e703c0d6fb708e2dd18eecbac0ad9ccb01 Mon Sep 17 00:00:00 2001 From: Wael Nasreddine Date: Mon, 22 Dec 2025 12:23:35 -0800 Subject: [PATCH] feat: Allow setting a new startup logo --- config/plugins/ui/startup.nix | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/config/plugins/ui/startup.nix b/config/plugins/ui/startup.nix index a665f224..13e48bbb 100644 --- a/config/plugins/ui/startup.nix +++ b/config/plugins/ui/startup.nix @@ -1,5 +1,24 @@ +{ config, lib, ... }: + { - plugins.startup = { + options = { + # TODO: Is this a good name for the option (top-level?) Or should we explore nesting of some sort? + neoVimStartupLogo = lib.mkOption { + type = lib.types.str; + # Use https://fsymbols.com/generators/carty/ to generate this art + default = '' + ██████╗░███████╗░█████╗░░█████╗░██████╗░████████╗░░░████████╗███████╗░█████╗░██╗░░██╗ + ██╔══██╗██╔════╝██╔══██╗██╔══██╗██╔══██╗╚══██╔══╝░░░╚══██╔══╝██╔════╝██╔══██╗██║░░██║ + ██║░░██║█████╗░░██║░░╚═╝██║░░██║██████╔╝░░░██║░░░░░░░░░██║░░░█████╗░░██║░░╚═╝███████║ + ██║░░██║██╔══╝░░██║░░██╗██║░░██║██╔══██╗░░░██║░░░░░░░░░██║░░░██╔══╝░░██║░░██╗██╔══██║ + ██████╔╝███████╗╚█████╔╝╚█████╔╝██║░░██║░░░██║░░░██╗░░░██║░░░███████╗╚█████╔╝██║░░██║ + ╚═════╝░╚══════╝░╚════╝░░╚════╝░╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░░╚═╝░░░╚══════╝░╚════╝░╚═╝░░╚═╝ + ''; + description = "Logo"; + }; + }; + + config.plugins.startup = { enable = true; colors = { @@ -15,14 +34,7 @@ foldSection = false; title = "Header"; margin = 5; - content = [ - " ██████╗░███████╗░█████╗░░█████╗░██████╗░████████╗░░░████████╗███████╗░█████╗░██╗░░██╗" - " ██╔══██╗██╔════╝██╔══██╗██╔══██╗██╔══██╗╚══██╔══╝░░░╚══██╔══╝██╔════╝██╔══██╗██║░░██║" - " ██║░░██║█████╗░░██║░░╚═╝██║░░██║██████╔╝░░░██║░░░░░░░░░██║░░░█████╗░░██║░░╚═╝███████║" - " ██║░░██║██╔══╝░░██║░░██╗██║░░██║██╔══██╗░░░██║░░░░░░░░░██║░░░██╔══╝░░██║░░██╗██╔══██║" - " ██████╔╝███████╗╚█████╔╝╚█████╔╝██║░░██║░░░██║░░░██╗░░░██║░░░███████╗╚█████╔╝██║░░██║" - " ╚═════╝░╚══════╝░╚════╝░░╚════╝░╚═╝░░╚═╝░░░╚═╝░░░╚═╝░░░╚═╝░░░╚══════╝░╚════╝░╚═╝░░╚═╝" - ]; + content = lib.strings.splitString "\n" config.neoVimStartupLogo; highlight = "Statement"; defaultColor = ""; oldfilesAmount = 0;