PRAISE-THE-CODE-startup-neovim/README.md

111 lines
4.1 KiB
Markdown
Raw Normal View History

# PRAISE THE CODE
2024-03-20 21:34:45 +00:00
Assumes a pretty big display, might need some adjustment for your own screen.
2024-03-21 15:07:19 +00:00
![screenshot](2024-03-21_15-03-1711032570.png)
2024-03-20 21:36:01 +00:00
```lua
require'startup'.setup({
keygen_church = {
type = 'text',
title = 'PRAISE THE CODE',
oldfiles_directory = false,
fold_section = false,
default_color = '#FF0000',
highlight = '',
margin = 5,
align = 'center',
content = {
2024-03-21 15:06:14 +00:00
" █ ",
" ▓ █ ▓ ",
" ░█░ ",
" █ ",
" ▓ █ ▓ ",
" █ ▓ █ ▓ █ ",
" ▓ █ ▒ █ ▓ █ ▓ █ ▒ █ ▓ ",
" ▒ ▓ █ ▒ ▓ █ ▓ █ ▓ █ ▓ ▒ █ ▓ ▒ ",
" ░ ▒ ▓ █ ▒ ▓ █ ▓ █ ▓ █ ▓ ▒ █ ▓ ▒ ░ ",
"░ ░ ▒ ▓ █ ▒ ▓ █ ▓ █ ▓ █ ▓ ▒ █ ▓ ▒ ░ ░",
" ▓ █ ▓ █ ▓ █ ▓ ",
2024-03-21 15:36:22 +00:00
},
oldfiles_amount = 0
},
lower = {
type = 'text',
align = 'center',
highlight = '',
default_color = '#FF0000',
content = {
2024-03-21 15:06:14 +00:00
" ▓ ▓ ▓ ▓ ▓ ▓ ",
" ▒ ▓ ▒ ▓ ▓ ▓ ▒ ▓ ▒ ",
" ░▒▓▒░ ▒ ▒ ▒ ░▒▓▒░ ",
" ▓ ▓ ░░░▒░░░ ▓ ▓ ",
" ▓ ▒ ▒ ▒ ▓ ",
" ▒ ░░░░▒▒▒▒▒░░░░ ▒ ",
" ▒ ▒ ▒ ",
" ░ ▓▒░░▒░░▒▓ ░ ",
" ░ ▒ ▒ ░ ",
" ▒ ▒ ",
" ▒ ▒ ",
" ▒▒▒ ",
2024-03-21 15:36:22 +00:00
}
2024-03-20 21:36:01 +00:00
},
2024-03-21 15:36:22 +00:00
piano = {
2024-03-20 21:36:01 +00:00
type = 'text',
align = 'center',
highlight = '',
2024-03-21 15:36:22 +00:00
default_color = '#FF0000',
content = {
" ░▓░▓░░▓░▓░▓░░▓░▓░░▓░▓░▓░░ ",
" ░░░░░░░░░░░░░░░░░░░░░░░░░ ",
}
2024-03-20 21:36:01 +00:00
},
2024-03-21 15:36:22 +00:00
praise = {
2024-03-21 15:06:14 +00:00
type = 'text',
2024-03-21 15:36:22 +00:00
content = {'PRAISE THE CODE'},
2024-03-21 15:06:14 +00:00
align = 'center',
highlight = '',
2024-03-21 15:36:22 +00:00
default_color = '#CCCCCC',
2024-03-21 15:06:14 +00:00
},
2024-03-20 21:36:01 +00:00
body = {
type = 'mapping',
oldfiles_directory = false,
align = 'center',
fold_section = false,
title = 'Commands',
margin = 0,
content = {
2024-03-21 15:36:22 +00:00
{'Open files', 'Telescope find_files', '<leader>f'}, -- requires telescope
2024-03-20 21:36:01 +00:00
{'Recent files', 'Telescope oldfiles', '<leader>r'}, -- requires telescope
2024-03-21 15:06:14 +00:00
{'Browse files', 'Telescope file_browser', '<leader>b'}, -- requires telescope and file_browser
2024-03-21 15:36:22 +00:00
{'Git log', 'Telescope git_commits', '<leader>l'}, -- requires telescope
2024-03-20 21:36:01 +00:00
{'Git status', 'Telescope git_status', '<leader>s'}, -- requires telescope
2024-03-21 15:06:14 +00:00
{'New file', "lua require'startup'.new_file()", '<leader>n'},
2024-03-20 21:36:01 +00:00
},
highlight = '',
default_color = '#BF0000',
oldfiles_amount = 0
},
options = {
mapping_keys = true,
disable_statuslines = true,
cursor_column = 0.5,
2024-03-21 15:36:22 +00:00
paddings = { 14, 0, 1, 0, 0 }
2024-03-20 21:36:01 +00:00
},
mappings = {
execute_command = '<CR>',
open_file = 'o',
open_file_split = '<c-o>',
open_section = '<TAB>',
open_help = '?',
},
colors = {
background = '#00000000'
},
2024-03-21 15:36:22 +00:00
-- change the order for sections here
-- for example: put lower after body to 'wrap' the menu in the acii art
-- make sure to also check the paddings to make sure they work
parts = {'keygen_church', 'lower', 'praise', 'body', 'piano'}
2024-03-20 21:36:01 +00:00
})
2024-03-21 15:36:22 +00:00
2024-03-20 21:36:01 +00:00
```