Share your dashboards! #111
Replies: 14 comments 30 replies
-
Well, you've already seen mine in the related PR, but here goes Related config dashboard = {
sections = {
{
section = "terminal",
cmd = "figlet -f ~/.config/LazyVimDev/ansi_shadow.flf -ct 'LAZYVIM' | lolcat -F 0.3 -t -p 100 -f",
height = 6,
padding = 1,
random = 10,
},
{ icon = " ", title = "Keymaps", section = "keys", indent = 2, padding = 1 },
{ icon = " ", title = "Recent Files", section = "recent_files", indent = 2, padding = 1 },
{ icon = " ", title = "Projects", section = "projects", indent = 2, padding = 1 },
{ section = "startup" },
},
}, If I had more screen real-estate, I would definitely try the vertical panes as well 😄 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
and all it took was: sections = {
{
section = "terminal",
cmd = "lolcat --seed=24 ~/.config/nvim/static/neovim.cat",
indent = -5,
height = 8,
width = 69,
padding = 1,
},
{
section = "keys",
indent = 1,
padding = 1,
},
{ section = "startup" },
}, |
Beta Was this translation helpful? Give feedback.
-
🍿 My great setup using SnacksDashboard |
Beta Was this translation helpful? Give feedback.
-
Configuration... dashboard = {
width = 72,
sections = {
{
section = 'terminal',
align = 'center',
cmd = 'cat ' .. vim.fn.stdpath('config') .. '/lua/plugins/ui/header.cat',
height = 11,
width = 72,
padding = 1,
},
{
align = 'center',
padding = 1,
text = {
{ ' Update ', hl = 'Label' },
{ ' Sessions ', hl = '@property' },
{ ' Last Session ', hl = 'Number' },
{ ' Files ', hl = 'DiagnosticInfo' },
{ ' Recent ', hl = '@string' },
},
},
{ section = 'startup', padding = 1 },
{ icon = ' ', title = 'Projects', section = 'projects', indent = 2, padding = 1 },
{ icon = ' ', title = 'Recent Files', section = 'recent_files', indent = 2, padding = 1 },
{ text = '', action = ':Lazy update', key = 'u' },
{ text = '', action = ':PersistenceLoadSession', key = 's' },
{ text = '', action = ':PersistenceLoadLast', key = 'l' },
{ text = '', action = ':Telescope find_files', key = 'f' },
{ text = '', action = ':Telescope oldfiles', key = 'r' },
},
}, Just like my previous |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Github centric dashboardThis is what I'm using right now. {
sections = {
{ section = "header" },
{
pane = 2,
section = "terminal",
cmd = "colorscript -e square",
height = 5,
padding = 1,
},
{ section = "keys", gap = 1, padding = 1 },
function()
local in_git = Snacks.git.get_root() ~= nil
local cmds = {
{
title = "Notifications",
cmd = "gh notify -s -a -n5",
icon = " ",
height = 5,
enabled = true,
},
{
title = "Open Issues",
cmd = "gh issue list -L 3",
icon = " ",
height = 7,
},
{
icon = " ",
title = "Open PRs",
cmd = "gh pr list -L 3",
height = 7,
},
{
icon = " ",
title = "Git Status",
cmd = "hub --no-pager diff --stat -B -M -C",
height = 10,
},
}
return vim.tbl_map(function(cmd)
return vim.tbl_extend("force", {
pane = 2,
section = "terminal",
enabled = in_git,
padding = 1,
ttl = 5 * 60,
indent = 3,
}, cmd)
end, cmds)
end,
{ section = "startup" },
},
} |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Why not showing what the weather is like? :p with {
...
sections = {
...
{ section = "terminal", cmd = "curl -s 'wttr.in/?0'"},
}
} |
Beta Was this translation helpful? Give feedback.
-
Config
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
just a cat with a gun ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠋⠀⢀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠈⠉⠉⠙⠛⠛⠻⢿⣿⡿⠟⠁⠀⣀⣴⣿⣿⣿⣿⣿⠟ |
Beta Was this translation helpful? Give feedback.
-
There are a lot of hacks to make this work, specifically the footer. Only renders correctly for 2560x1440p. Convert from Bekaboo's design and it's not actually copyrighted. Configdashboard = {
enabled = true,
width = 18,
sections = {
-- stylua: ignore start
{ hidden = true, icon = " ", key = "t", desc = "Find [T]ext", action = ":lua Snacks.dashboard.pick('live_grep')" },
{ hidden = true, icon = " ", key = "r", desc = "[R]ecent Files", action = ":lua Snacks.dashboard.pick('oldfiles')" },
{ hidden = true, icon = " ", key = "l", desc = "[L]azy", action = ":Lazy" },
-- stylua: ignore end
-- Header
{ text = " ", padding = 12 },
{
padding = 2,
text = {
{ "Neovim :: M Λ C R O ", hl = "Normal" },
{ "- Editing made simple", hl = "NonText" },
},
action = ":lua Snacks.dashboard.pick('files')",
key = "f",
},
-- Keys
{
padding = 1,
text = {
{ " Find [F]ile", width = 19, hl = "NonText" },
{ " Find [T]ext", hl = "NonText" },
},
action = ":lua Snacks.dashboard.pick('files')",
key = "f",
},
{
padding = 1,
text = {
{ " ", width = 3 },
{ " [N]ew File", width = 19, hl = "NonText" },
{ " [R]ecent File", hl = "NonText" },
},
action = ":ene | startinsert",
key = "n",
},
{
padding = 2,
text = {
{ " ", width = 9 },
{ " [C]onfig", hl = "NonText" },
{ " ", width = 8 },
{ " [L]azy", hl = "NonText" },
{ " ", width = 14 },
},
action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})",
key = "c",
},
{
padding = 2,
text = {
{ " ", width = 5 },
{ " [Q]uit", hl = "NonText" },
},
action = ":quitall",
key = "q",
},
-- Startup
{ section = "startup", padding = 1 },
{ section = "terminal", cmd = "printf ' '", height = 15 },
-- Keys
{
text = {
[[
Copyright (c) 2024 - M Λ C R O developers
]],
hl = "NonText",
},
},
},
formats = { key = { "" } },
},
Notice the |
Beta Was this translation helpful? Give feedback.
-
Have you created any neat dashboards, you can share a screenshot with the config here.
Beta Was this translation helpful? Give feedback.
All reactions