nvim-lua.kickstart.nvim/lua/custom/plugins/snacks.lua

128 lines
19 KiB
Lua
Raw Normal View History

2025-04-14 01:48:56 +05:00
return {
'folke/snacks.nvim',
priority = 1000,
lazy = false,
---@type snacks.Config
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
bigfile = { enabled = true },
dashboard = {
enabled = true,
2025-04-28 14:19:37 +05:00
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 },
},
2025-04-14 01:48:56 +05:00
},
explorer = { enabled = false },
indent = { enabled = true },
input = { enabled = false },
picker = { enabled = false },
notifier = { enabled = false },
quickfile = { enabled = true },
scope = { enabled = true },
scroll = { enabled = true },
statuscolumn = { enabled = false },
words = { enabled = false },
},
}