Closed glepnir closed 1 year ago
@jrock2004 I don't have dashboard config anymore (moved to a different plugin) but here is the OPM variable for anyone interested: https://gist.github.com/konart/5564319ae9620f57ec43ba61fb92d5d5
And here is the pretty naive Git status list implementation: https://github.com/glepnir/dashboard-nvim/issues/7#issuecomment-883629929
@konart What did you switch to?
@jrock2004 I don't have dashboard config anymore (moved to a different plugin) but here is the OPM variable for anyone interested: https://gist.github.com/konart/5564319ae9620f57ec43ba61fb92d5d5
And here is the pretty naive Git status list implementation: #7 (comment)
And now i shall yoink that nice snazzy git status
works fine for me
it's mine looks like, i can't config the cat file correctly.
@glepnir
had you realized that your way of displaying the header art allows for chafa
to run in it? Turns out I can actually play GIFs in the header:
any idea why it pauses in command mode? Not really an issue or anything either way.
For anyone who wants to reproduce this:
vim.g.dashboard_preview_command = 'chafa -c 256 --fg-only --symbols braille'
vim.g.dashboard_preview_file = 'LAINHADN3.gif'
you need https://github.com/hpjansson/chafa and preview_file can also be most any kind of image file format, you might wanna play around with the flags it provides but I've found braille symbols + fg-only (doesn't use terminal background colors to render) produces the best results for this application
Show my dashboard.
Here's my dashboard 🙈👋
If you want to see this configuration, here we go https://github.com/r17x/nixpkgs/tree/main/configs/nvim
This is mine 😛
Simple good looking dashboard for neovim. (can add to wiki)
Still working in progress and maybe I will change but I will post because I like it. I tried to find a way to show loading time like doom emacs reading startuptime.vim code but it needs vimscript knowledge and I can't.
can you give this ascii?
Another design!
Pikachu!
What is this font pls?
Pikachu!
What is this font pls?
Operator Mono, using Kitty
Custom "Neovim" ASCII Text, together with ability to load one of last five sessions, or search a session. Session Lens, plenary.nvim and all dependent plugins are required. Config (written in Lua) and corresponding Utils and SessionConfig
db.default_banner = {
'',
'',
' ⠀⠀⠀⠀⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ',
' ⠀⠀⠀⠀⢐⡛⣛⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ',
' ⣶⣾⣷⣿⣿⣶⣶⣤⣌⣙⣛⡻⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ',
' ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣬⡙⠿⠿⠟⠛⢛⣛⠛⠛⠛⠛⠻⠿⠿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ',
' ⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⢛⣉⣩⣵⣶⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣶⣦⣍⣉⣙⡛⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟ ',
' ⣿⣿⣿⣿⣿⡿⠟⣫⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣤⠉⠛⣿⣿⣿⣿⣿⣿⡟⢠ ',
' ⣿⣿⡟⢉⣱⡶⢟⣉⢥⣮⣭⡛⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣮⣙⠿⠿⠿⠛⢡⣿ ',
' ⡿⢋⣴⣿⡏⣠⣿⡁⠀⢸⣿⣿⡎⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣤⡀⣰⣿⣿ ',
' ⣴⣿⣿⣿⡇⠹⣿⣿⣿⣿⡿⢟⣼⣿⣿⣿⣿⠿⠟⣛⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⡙⣿ ',
' ⣿⣿⣿⣿⣿⣷⣬⣭⠭⠵⠶⠿⣟⣛⣭⣷⣶⣴⣿⣟⣻⣦⡝⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢫⣵⣶⠶⢶⣮⣍⢻⣿⣿⣿⣎ ',
' ⣿⣿⣿⣿⢻⣭⣴⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⣛⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⣿⣿⣅⠀⢀⣿⣿⡇⢻⣿⣿⣿ ',
' ⣿⣿⣿⣿⣮⡃⢀⡀⠀⠀⠀⠀⠉⠛⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣮⣍⡻⢿⣿⣿⣿⣿⣿⣧⡹⣿⣿⣿⣿⣿⣿⢇⣾⣿⣿⣿ ',
' ⣿⣿⣿⣿⣿⣿⣦⣙⠿⣦⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠉⠉⠛⠿⣿⣿⣿⣿⣷⣬⡻⣿⣿⣿⣿⣷⣮⣭⣉⣉⣩⣴⣿⣿⣿⣿⣿ ',
' ⣿⣿⣿⣿⣿⣿⣿⣿⣷⣬⡻⡓⠦⣤⣤⣤⣄⣀⣀⣀⠀⠀⠀⠀⠀⠀⠈⠉⠛⠛⢿⣿⣎⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ',
' ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡘⠷⣶⣾⣿⣿⡿⠿⠿⠿⢿⣟⣛⣛⣛⣛⣛⣉⣭⣭⣭⣵⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ',
' ⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⡻⣭⣶⣦⣤⣤⣴⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿ ',
' ⣿⣿⣿⣿⣿⣿⣿⠿⢋⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⣫ ',
' ⣿⣿⣿⣿⣿⣿⣿⣿⣫⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢋⣵⣿⣿ ',
' ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢏⣴⣿⣿⣿⣿ ',
' ⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⢡⣿⣿⣿⡿⠿⠿ ',
'',
'"a"',
'',
}
I always wanted something like in Spacemacs.
Here is my custom dashboard. I don't use icons as they are not installed in OSs by default .
A very strange usage in all 🤣 !
A very strange usage in all rofl !
looks funny
Wow!how is this set up?
check the readme. just work in linux.
oh no. I don't know how to fix this red block, my config is as follows:
local home = os.getenv('HOME')
local status_ok, db = pcall(require, "dashboard")
if not status_ok then
return
end
db.preview_command = 'ueberzug'
db.preview_file_path = home .. '/.config/nvim/static/01.png'
db.preview_file_height = 27
db.preview_file_width = 48
db.custom_center = {
{icon = ' ',
desc = ' Recently latest session ',
shortcut = 'SPC s l',
action ='SessionLoad'},
{icon = ' ',
desc = 'Recently opened files ',
action = 'DashboardFindHistory',
shortcut = 'SPC f h'},
{icon = ' ',
desc = 'Find File ',
action = 'Telescope find_files find_command=rg,--hidden,--files',
shortcut = 'SPC f f'},
{icon = ' ',
desc ='File Browser ',
action = 'Telescope file_browser',
shortcut = 'SPC f b'},
{icon = ' ',
desc = 'Find word ',
action = 'Telescope live_grep',
shortcut = 'SPC f w'},
{icon = ' ',
desc = 'Open Personal dotfiles ',
action = 'Telescope dotfiles path=' .. home ..'/.dotfiles',
shortcut = 'SPC f d'},
}
I found the red block because of this plugin:bronson/vim-trailing-whitespace Now I let this plugin lazy load and everything works.
Super Saiyan
Hi in your custom dashboard you have custom footer which is multi line. When I'm trying to set a quote for my custom footer it's throwing en error. How did you set the multiline quote ?
how did you make the custom footer like that?
use a image of dragonball would be better
@glepnir had you realized that your way of displaying the header art allows for
chafa
to run in it? Turns out I can actually play GIFs in the header:any idea why it pauses in command mode? Not really an issue or anything either way. lainmoding.mp4
For anyone who wants to reproduce this:
vim.g.dashboard_preview_command = 'chafa -c 256 --fg-only --symbols braille' vim.g.dashboard_preview_file = 'LAINHADN3.gif'
you need https://github.com/hpjansson/chafa and preview_file can also be most any kind of image file format, you might wanna play around with the flags it provides but I've found braille symbols + fg-only (doesn't use terminal background colors to render) produces the best results for this application
That's so cool!! Plus, you can use multiple gifs:
db.preview_command = 'chafa -C true -c 256 --fg-only --symbols braille --clear'
db.preview_file_path = '$(ls ' .. home .. '/.config/nvim/static/*.gif | sort -R)'
very nice. I can use this in new theme!
Just figured out how to center dashboard! Pretty nice effect imo.
local header_height = #dashboard.custom_header
local center_height = (#dashboard.custom_center * 2) + dashboard.center_pad
local footer_height = 2 + dashboard.footer_pad
if dashboard.custom_footer ~= nil then
footer_height = #dashboard.custom_footer + dashboard.footer_pad
end
local dashboard_height = header_height + center_height + footer_height
local function update_padding()
local win_height = vim.fn.winheight(0)
local padding = (win_height - dashboard_height) / 2
dashboard.header_pad = padding
end
vim.api.nvim_create_autocmd({ "VimResized" }, {
callback = update_padding,
})
@DominikMarcinowski how did you get a different colour for the icons and the descriptions?
@DominikMarcinowski how did you get a different colour for the icons and the descriptions?
I don't know how to set the custom theme for them. They were like that for me from the start. I use https://github.com/navarasu/onedark.nvim theme.
there has a filed icon_hl
How did you add colors to the custom header?
hi DashboardHeader guifg=your color
Thanks
@mimic05 I'm unable to use multi-line quotes as well. Did you figure out a way to do it?
Credit to @DominikMarcinowski for the centering function :tada:
Here is my custom header! Super Saiyan Son Goku!!
ikun assemble.
db.custom_header = {
[[ .:=====-:.. ..................:-::]],
[[ 鸡你太美 ..... =####*##*+: ................... ...]],
[[ . .:+===-==: . ...................... ]],
[[ ... .-==:+%%#=-=++:-:. ...... .....................]],
[[ .. :#%%@%=%@@@%#%@-#@%*: .......................]],
[[ .. .-+%@@@%##%@%%@@%##%@@@@#+--:. ..................]],
[[ .. :=#@@@%#**%@@@@@%+==:.:-=+*#%%%#**+:. ...............]],
[[ . :*@@%#%%**%@@@@%*=. ..:=*####+. ..............]],
[[ .... :*@%+-=+**########+- ........... :---::-=+: ..............]],
[[.... .. -*@*-. =*************. ...........=++==++++: ..............]],
[[::::.....:+#*. .. -++++**=***+++=: ...........-=+++=-.................]],
[[:::::::.--.........++==+= :+#*++=+: .......... ... ................]],
[[:::::::::::....... :+====. :+++==+: .................................]],
[[::::::::::::::.... :+===+: . .-+++++: ................................]],
[[.::::::::::::::::..:++++=..... -**+*- ................................]],
}
ikun assemble.
db.custom_header = { [[ .:=====-:.. ..................:-::]], [[ 鸡你太美 ..... =####*##*+: ................... ...]], [[ . .:+===-==: . ...................... ]], [[ ... .-==:+%%#=-=++:-:. ...... .....................]], [[ .. :#%%@%=%@@@%#%@-#@%*: .......................]], [[ .. .-+%@@@%##%@%%@@%##%@@@@#+--:. ..................]], [[ .. :=#@@@%#**%@@@@@%+==:.:-=+*#%%%#**+:. ...............]], [[ . :*@@%#%%**%@@@@%*=. ..:=*####+. ..............]], [[ .... :*@%+-=+**########+- ........... :---::-=+: ..............]], [[.... .. -*@*-. =*************. ...........=++==++++: ..............]], [[::::.....:+#*. .. -++++**=***+++=: ...........-=+++=-.................]], [[:::::::.--.........++==+= :+#*++=+: .......... ... ................]], [[:::::::::::....... :+====. :+++==+: .................................]], [[::::::::::::::.... :+===+: . .-+++++: ................................]], [[.::::::::::::::::..:++++=..... -**+*- ................................]], }
neovim(x) neovikun(√)
You can share your custom dashboard in here. i will add it to wiki demo page. Thanks.