Update: Custom intro-screen using alpha

This commit is contained in:
psychhim
2025-10-14 14:58:19 +05:30
parent d54a663974
commit 9796478476
3 changed files with 68 additions and 50 deletions

17
lua/ascii_splash.lua Normal file
View File

@@ -0,0 +1,17 @@
local splash = {
' ________________________________________________________________________________________________________',
'| Esc | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | |',
'|_______|______|______|______|______|______|______|______|______|______|______|______|________|__________|',
'| ~ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Backspace |',
'|_______|______|______|______|______|______|______|______|______|______|______|______|______|____________|',
'| Tab | Q | W | E | R | T | Y | U | I | O | P | [ | ] | \\ |',
'|____________|______|______|______|______|______|______|______|______|______|______|______|______|_______|',
"| Caps | A | S | D | F | G | H | J | K | L | ; | ' | Enter |",
'|____________|______|______|______|______|______|______|______|______|______|______|______|______________|',
'| Shift | Z | X | C | V | B | N | M | , | . | / | Shift |',
'|________________|______|______|______|______|______|______|______|______|______|______|_________________|',
'| Ctrl | Win | Alt | Space | Alt | Win | Menu | Ctrl |',
'|_______|_____|_____|___________________________________________________|_____|_____|______|_____________|',
}
return splash

View File

@@ -0,0 +1,18 @@
return {
'goolord/alpha-nvim',
lazy = false,
config = function()
local alpha = require 'alpha'
local dashboard = require 'alpha.themes.dashboard'
local splash = require 'ascii_splash'
dashboard.section.header.val = splash
dashboard.section.buttons.val = {
dashboard.button('e', ' New File', ':ene <BAR> startinsert <CR>'),
dashboard.button('q', ' Quit', ':qa<CR>'),
}
alpha.setup(dashboard.opts)
end,
}