make cool dashboard

This commit is contained in:
khaydarov 2025-04-28 14:19:37 +05:00
parent fd1a3c6d61
commit d8376ce1da

View file

@ -10,6 +10,108 @@ return {
bigfile = { enabled = true },
dashboard = {
enabled = true,
sections = {
{
header = [[
]],
},
{
pane = 2,
header = [[
]],
--header = [[⣿⣿⣿⣿⣿⣿⣿⣿⣿⠏⡤⠀⢠⣿⠿⠀⡀⠀⢀⣴⣿⠇⠀⠀⠀⠀⠀⠀⠀⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣿⣿⣷⣿⣿⣿
-- ⣿⣿⣿⣿⣿⣿⣿⡿⠏⢼⡅⠀⠻⣿⠁⢠⠁⢀⡼⠋⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠣⠈⢻⣿⣿⣿⣿⡟⣫⡀⣼⣟⣿⣿⣿⣿⣿
-- ⣿⣿⣿⣿⣿⣿⣧⠀⠀⢸⠁⠀⡄⡟⢰⠀⡴⠀⣠⠎⠁⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁⠈⢿⣿⣿⡿⢃⠠⠳⣻⣿⣿⣿⣿⣿⣿
-- ⣿⣿⣿⣿⣿⣿⣿⣧⠀⠘⡄⠀⡇⢱⡏⠘⠀⠀⠁⠀⢀⠔⢉⡠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⣿⡟⠱⠿⠿⢶⠿⣿⣷⣿⣿⣿⣿
-- ⣿⣿⣿⣿⣿⣿⣿⣿⣆⠀⠀⠀⠻⠈⠀⠀⠀⠀⠠⠊⣡⠞⠋⠀⠀⢀⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⣿⣿⣿⣿⣶⣾⣿⣿⣿⣿⣿⣿
-- ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣆⡀⠀⠀⠀⠀⠀⠀⠀⣠⠟⠁⢀⢴⠖⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
-- ⣿⣿⣿⣿⣿⡿⠿⠿⣿⣿⣿⠆⠀⢰⡀⠀⠀⠾⠃⢀⡔⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠻⣿⣿⣿⣿⣿⣿⣿
-- ⣿⣿⣿⢩⠃⠀⣀⢰⣾⣿⠏⣀⠢⠀⠣⣤⠀⠀⠔⠋⢀⠐⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠲⠄⠀⠀⠀⠙⢛⠛⠛⠛⠛
-- ⣿⣿⡏⠀⢀⠾⢋⣤⣤⣶⣿⣿⣷⡄⠄⠀⠈⢰⣾⠗⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠒⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠠⠤⠄⠀⠀⠀⠉⠛⢛⣿
-- ⣿⣿⡇⠀⠈⠀⠀⠉⠉⠉⠉⠉⠉⠉⠑⠂⢠⡟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠂⠀⠀⠀⠄⠀⣠⡶⠟⣂⠀⠀⠀⠀⠐⠶⠤⠀⠀⠖⣄⡀⡍
-- ⣿⣿⣿⡤⠂⠀⠀⠀⢀⣤⣤⣤⠀⢰⡖⢠⠟⠀⠀⠀⠀⠠⢀⣀⠰⣤⣤⣶⣶⣤⡀⠲⣶⡶⢆⠀⠀⠀⠀⠀⠀⢀⠄⠀⠀⠀⢀⠙⠀⠸⡿⠓⠀⠀⠀⠀⠀⢀⣀⡀⠀⠈⢻⡇
-- ⣿⣿⣿⡇⠀⠀⠀⠐⠋⠀⠉⠙⠃⠀⠛⠛⢀⢀⣁⠠⣤⣄⢻⣿⣷⣦⠙⣿⣿⣿⣿⣆⢈⠻⣦⠙⢶⣠⡠⠌⠋⠀⠀⠠⠀⠀⠀⠡⣴⠿⠇⠄⠀⠀⠀⠀⠀⠈⠻⠿⣿⣿⣆⠹
-- ⣿⣿⣿⣦⠀⠀⠀⠀⠀⠀⣀⣀⠘⠛⢀⣴⣿⣾⣿⣷⡘⣿⡆⢿⣿⣿⣦⠹⣿⣿⣿⣿⡄⢷⣿⣿⣦⢀⢠⣴⣤⡀⠀⠀⠀⠀⠐⡄⠈⠙⠏⢹⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⠻⠀
-- ⣿⣿⣿⣿⡆⠀⠀⢀⡶⣶⣿⣿⣿⣧⣾⣿⣿⣿⣿⣿⣿⣿⣆⡌⢿⣿⣿⣧⠢⣽⣿⣿⣿⣬⠿⠛⠉⠚⠚⡟⣿⠇⠀⠀⠀⠀⠀⣀⡀⠀⠒⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠠⠄⠀
-- ⣿⣿⣿⣿⣷⠀⠀⠈⢠⣿⣿⣿⣿⣹⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⠘⢛⣫⣤⣷⣌⣿⡿⠋⠀⣠⣴⣶⣶⡀⢰⡾⡀⣴⣷⡄⠀⢀⠈⢿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
-- ⣿⣿⣿⣿⣿⠀⠀⠀⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣾⢸⣿⣿⣿⡿⠋⠁⣀⣴⡿⠿⣛⠹⠛⣡⣿⣇⠀⣿⣿⣧⠀⠀⠑⢦⡵⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
-- ⣿⣿⣿⣿⣿⡆⠃⠀⠀⠙⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣼⣿⠟⠉⠀⢀⣴⠯⠕⠊⢉⠔⣠⣾⣿⣿⡇⠀⣌⣻⡏⠀⠀⠐⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘
-- ⣿⣿⣿⣿⣿⣿⠀⡀⠀⠐⣤⡈⠛⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠛⠁⠀⣀⡄⠈⣠⣶⣤⣄⣊⣴⣿⣿⣿⣿⣧⠢⡻⠏⣰⡀⠄⣀⢠⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
-- ⣿⣿⣿⣿⡿⠋⡠⠀⠀⠀⠈⠛⠆⠀⡀⠉⠛⠿⢿⣿⣿⣿⣀⡀⢄⣴⡾⠋⣠⣬⣉⣁⣀⣨⣽⣿⣿⣿⢿⣙⠻⢿⣶⣮⡅⢀⡆⢻⣾⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
-- ⣿⣿⣿⡏⣰⠧⠀⠀⢰⠀⠀⠑⣦⡀⠙⠷⢤⠤⢄⣈⠉⣿⣿⣿⣶⣶⣶⣤⣈⠉⣉⣻⣿⣿⣿⣿⣿⣿⣶⣮⣭⣽⣌⡛⠧⢼⡁⠘⣡⠎⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
-- ⡿⢿⡏⠀⠿⠀⠀⢀⡜⠀⠀⠀⠈⢳⣤⣄⣘⣻⣿⡟⢀⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⠔⢁⣭⣽⣯⣴⡆⠘⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
-- ⣿⣦⡄⢨⡄⠀⢰⣿⠇⡀⠀⠀⡄⢀⠹⣿⣿⣿⣿⠇⢲⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⠠⣁⣴⣿⣿⣿⣿⠿⠀⡔⠀⠠⢠⡏⠀⠀⢰⣇⠀⠀⠀⠀⠀⠀⠀⠀
-- ⣿⣿⡿⢀⡀⠀⣿⡇⢀⠂⠀⢾⡇⠀⠀⠈⠻⣿⣧⣄⡈⠄⢻⣿⣿⣿⣿⣿⡿⣿⣿⣿⣿⣿⣿⣿⣶⣩⣿⣏⣥⣿⣿⠿⠋⠁⣸⠁⢀⡆⣼⠃⠀⠀⣾⡟⠀⠀⠀⠀⠀⠀⠀⠀
-- ⣿⣿⣱⣿⡇⠀⣿⡇⡀⠀⢰⠈⠁⠀⠀⠀⠀⠀⢭⣽⣿⣆⠈⣿⣿⣿⣿⣿⣿⣿⣙⣿⣿⣿⣿⣿⣿⣧⡙⢿⣧⣿⡷⠅⢀⡄⣿⠀⠘⠰⣿⠀⠀⢰⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀
-- ⣿⡇⣿⣿⣷⣀⢿⡇⠃⠀⢸⡄⠀⠀⠀⠀⠀⠀⠀⠙⠻⢿⡀⠻⣿⣿⣿⠟⣛⣭⣭⣿⣿⣿⣿⣿⣿⣿⣿⣦⣶⠿⡒⢀⣼⡇⢿⠀⠀⠀⢻⠂⠀⠈⡇⠀⠀⠀⠀⠀⠀⢀⠀⠀
-- ⣿⣷⣽⣿⣿⣿⣦⣅⠀⠀⠸⡿⠀⠀⢀⠀⠀⠀⠀⠀⠀⠈⢻⣦⠈⠉⠉⠘⠉⢀⠀⠉⠍⠱⠦⠈⠉⡛⢿⣿⣿⠃⠀⢸⣿⣿⡈⠀⠀⠀⠈⠀⢀⠀⠀⠀⠀⠀⠀⢰⠀⠈⠀⠀
-- ⣿⣿⣿⣿⣿⣿⣿⣿⣧⠀⠀⠁⠀⢴⡄⠀⠀⠀⠀⠀⠀⢆⠀⠁⠀⢀⡀⣐⣀⣤⣤⣤⣤⣼⣻⣷⣄⠀⠁⣙⠃⢀⣾⣿⣿⣿⣿⣦⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠀⠀⠐
-- ⣿⣿⣿⣿⣿⣿⣿⣿⣿⠇⠀⠐⠀⣿⡇⠀⠀⠰⠁⠀⠀⠀⠀⠀⠈⠒⢖⠲⠿⠿⠿⠿⠛⣫⣤⣾⣿⡂⠀⣀⠀⣶⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⡄⢰⠈⠀⠀⠀⠠
-- ⣿⣿⣿⣿⣿⣿⣿⣿⠏⢠⡆⣠⠀⠻⠃⠀⢀⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⢶⣤⡤⢰⡒⠟⢻⠡⠠⠁⠄⢀⣼⣿⣿⣿⣿⣿⣿⣿⣧⠃⣰⡟⠀⠀⠀⠀⢀⡇⠸⡄⠀⡘⢀⡀
-- ⣿⣿⣿⣿⣿⣿⣿⡏⢀⣾⢠⣿⡇⠁⢀⡔⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⢄⣾⡑⢀⢀⠈⠓⢀⣤⣿⣿⣿⠿⠋⣻⣿⣿⣿⠃⣰⣿⠁⠀⠀⠀⠀⣼⣷⠀⠀⠀⠀⣿⣿
-- ⣿⣿⣿⣿⣿⣿⣿⠇⢸⣿⣾⣿⠃⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡔⢰⡆⠀⠀⠀⠁⠀⠀⠀⠸⣿⣿⣿⣿⡿⢠⣾⣿⣿⣿⠇⣰⣿⠏⠀⠀⠀⠀⢰⣿⠏⠀⠀⠰⢸⣿⣿
-- ⣿⣿⣿⣿⣿⣿⣿⠀⠸⣿⣿⠏⠀⠂⠀⠈⣠⠄⠀⠀⠀⠀⠀⠀⠀⠊⠀⣼⠃⠀⠀⠀⠀⠀⡌⠳⢄⠈⠻⠿⠗⢀⠁⠚⠻⠿⠋⣰⠟⠉⠀⠀⠀⠀⠀⡸⠃⠀⣠⡆⠀⠈⢿⣿
-- ⣿⣿⣿⣿⣿⣿⣿⠀⠀⠹⡎⠀⠀⢀⡀⠚⠃⠀⢀⣴⠂⠀⡄⠀⠀⣶⡀⠋⠀⠀⠀⠀⠀⠀⢹⡄⢢⣤⡀⣸⣥⣷⣦⡀⠀⠠⢦⣤⡴⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣷⡈⢆⠀⠛
-- ⣿⣿⣿⣿⣿⣿⣿⣇⠈⠀⠀⠀⣰⣿⣿⠋⠀⠂⣸⡇⠀⠀⠃⠀⠰⣿⡇⢰⠀⠀⠀⠀⠀⠀⢸⣿⡄⢟⠃⢹⣿⣿⣿⣿⣦⡀⠀⢀⡀⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣤⡢⣄
-- ⣿⣿⣿⣿⣿⣿⣿⣿⣷⠠⠀⠀⣿⣿⠏⢀⠄⠀⡿⠁⠀⠀⠀⠀⠀⠹⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣶⡇⢈⢻⣻⣿⣿⣿⣿⣿⡟⠀⠀⠀⠀⠀⠀⣰⣿⣿⣿⣿⣿⣿⣿⣿⣿
-- ⣿⣿⣿⣿⣿⣿⣿⡿⠃⢰⡀⠀⢻⡏⢠⡿⠀⡾⠁⠀⢠⠀⠀⠀⠀⠀⠀⡄⠀⠀⠀⠀⠀⠀⣾⣿⣿⣿⣿⣿⣬⣽⡛⠿⢿⣿⡿⠁⠀⠀⠀⠀⠀⢀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
-- ⣿⣿⣿⣿⣿⣿⣥⣾⣧⠘⠄⠀⠀⢰⣿⠁⣠⡇⠀⠀⢸⠀⣤⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⠉⠀⢎⣿⠃⠀⠀⠀⠀⢀⢠⡇⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿
-- ⣿⡿⠟⣻⣿⣿⣿⣿⣿⣷⣤⣡⣤⠌⠁⢰⣷⡇⠀⠀⢸⠀⢿⣿⣿⣦⠀⠀⠀⠀⠀⠀⠀⣾⣿⣿⣿⣿⣿⣿⣿⣿⠗⢡⣾⣿⠀⠀⠀⠀⠀⠈⣾⣉⣹⣿⣿⣿⣿⣿⣿⣿⣿⣿]],
},
{ icon = '', key = 'n', desc = 'New File', action = ':ene | startinsert' },
{ icon = '', key = 'g', desc = 'Find Text', action = ":lua Snacks.dashboard.pick('live_grep')" },
{ icon = '', key = 'f', desc = 'Find File', action = ":lua Snacks.dashboard.pick('files')" },
{ icon = '', title = 'Recent Files', section = 'recent_files', indent = 2, padding = 2 },
{ icon = '', title = 'Projects', section = 'projects', indent = 2, padding = 2 },
},
},
explorer = { enabled = false },
indent = { enabled = true },