{ config, ... }: let accent = "#${config.lib.stylix.colors.base0D}"; muted = "#${config.lib.stylix.colors.base03}"; foreground = "#${config.lib.stylix.colors.base05}"; configDir = config.var.configDirectory; in { programs.nixvim.highlight = { AlphaHeaderColor.fg = accent; AlphaTextColor.fg = foreground; AlphaShortcutColor.fg = muted; }; programs.nixvim.plugins.alpha = { enable = true; layout = [ { type = "padding"; val = 4; } { type = "text"; opts = { position = "center"; hl = "AlphaHeaderColor"; }; val = [ "  " " ████ ██████ █████ ██ " " ███████████ █████  " " █████████ ███████████████████ ███ ███████████ " " █████████ ███ █████████████ █████ ██████████████ " " █████████ ██████████ █████████ █████ █████ ████ █████ " " ███████████ ███ ███ █████████ █████ █████ ████ █████ " " ██████ █████████████████████ ████ █████ █████ ████ ██████ " " " ]; } { type = "padding"; val = 4; } { type = "group"; val = [ { type = "button"; val = "󰭎 Find file"; on_press.__raw = "function() vim.cmd[[Telescope find_files]] end"; opts = { keymap = [ "n" "f" ":Telescope find_files " { noremap = true; silent = true; nowait = true; } ]; shortcut = "f"; position = "center"; cursor = 3; width = 50; align_shortcut = "right"; hl_shortcut = "AlphaShortcutColor"; hl = "AlphaTextColor"; }; } { type = "button"; val = " New file"; on_press.__raw = "function() vim.cmd[[ene]] end"; opts = { keymap = [ "n" "n" ":ene " { noremap = true; silent = true; nowait = true; } ]; shortcut = "n"; position = "center"; cursor = 3; width = 50; align_shortcut = "right"; hl_shortcut = "AlphaShortcutColor"; hl = "AlphaTextColor"; }; } { type = "button"; val = " NixOs Config"; on_press.__raw = "function() vim.cmd[[Neotree ${configDir}]] end"; opts = { keymap = [ "n" "c" ":Neotree ${configDir} " { noremap = true; silent = true; nowait = true; } ]; shortcut = "c"; position = "center"; cursor = 3; width = 50; align_shortcut = "right"; hl_shortcut = "AlphaShortcutColor"; hl = "AlphaTextColor"; }; } { type = "button"; val = " Keybindings"; on_press.__raw = "function() vim.cmd[[e ${configDir}/docs/KEYBINDINGS.md]] end"; opts = { keymap = [ "n" "b" ":e ${configDir}/docs/KEYBINDINGS.md " { noremap = true; silent = true; nowait = true; } ]; shortcut = "b"; position = "center"; cursor = 3; width = 50; align_shortcut = "right"; hl_shortcut = "AlphaShortcutColor"; hl = "AlphaTextColor"; }; } { type = "button"; val = " Recently used"; on_press.__raw = "function() vim.cmd[[Telescope oldfiles]] end"; opts = { keymap = [ "n" "o" ":Telescope oldfiles " { noremap = true; silent = true; nowait = true; } ]; shortcut = "o"; position = "center"; cursor = 3; width = 50; align_shortcut = "right"; hl_shortcut = "AlphaShortcutColor"; hl = "AlphaTextColor"; }; } { type = "button"; val = "󰱽 Find text"; on_press.__raw = "function() vim.cmd[[Telescope live_grep]] end"; opts = { keymap = [ "n" "t" ":Telescope live_grep " { noremap = true; silent = true; nowait = true; } ]; shortcut = "t"; position = "center"; cursor = 3; width = 50; align_shortcut = "right"; hl_shortcut = "AlphaShortcutColor"; hl = "AlphaTextColor"; }; } { type = "button"; val = "󰩈 Quit Neovim"; on_press.__raw = "function() vim.cmd[[qa]] end"; opts = { keymap = [ "n" "q" ":qa " { noremap = true; silent = true; nowait = true; } ]; shortcut = "q"; position = "center"; cursor = 3; width = 50; align_shortcut = "right"; hl_shortcut = "AlphaShortcutColor"; hl = "AlphaTextColor"; }; } ]; } ]; }; }