mirror of
https://github.com/hyzendust/KickestEnd.nvim.git
synced 2026-02-15 02:21:14 +01:00
Update: Custom intro-screen using alpha
This commit is contained in:
17
lua/ascii_splash.lua
Normal file
17
lua/ascii_splash.lua
Normal 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
|
||||
18
lua/plugins/custom/alpha.lua
Normal file
18
lua/plugins/custom/alpha.lua
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user