nvimdev / dashboard-nvim

vim dashboard
MIT License
2.38k stars 193 forks source link

share your custom dashbaord #7

Closed glepnir closed 1 year ago

glepnir commented 4 years ago

You can share your custom dashboard in here. i will add it to wiki demo page. Thanks.

p00f commented 3 years ago

Does anyone know how can I add colors to the header btw?

pipe it to lolcat (see pipe command in the readme).

davidvalaz commented 3 years ago

Infact...a better question is, is it possible to pipe the default header through lolcat?

glepnir commented 3 years ago

lolcat just a cli to make some ascii text more colorful.. so what do you mean ?

davidvalaz commented 3 years ago

I wondered if there was an easy way to apply it to the default header that comes with dashboard?

glepnir commented 3 years ago

maybe just replace nvim logo by default ascii text

davidvalaz commented 3 years ago

Has anyone ever come across this annoying message before? No idea how it can be suppressed

Screen Shot 2021-03-28 at 08 53 09

glepnir commented 3 years ago

reduce the height value .

davidvalaz commented 3 years ago

We finally have it...

Screen Shot 2021-03-28 at 09 00 16

glepnir commented 3 years ago

why your header looks wired

vlstv commented 3 years ago

How do you guys disable line numbers?

Screen Shot 2021-03-31 at 14 40 29
glepnir commented 3 years ago

hmmm it's disable by default . Don't know why you got line number.

vlstv commented 3 years ago

weird, tried to disable all other plugins and commented out all vim settings, still see line numbers

glepnir commented 3 years ago

I can't reprodue with min config

arpangreat commented 3 years ago

Maybe A Demo including Telescope

https://user-images.githubusercontent.com/46556080/113480327-6e903980-94b1-11eb-8362-81dc55a7f43f.mp4

arpangreat commented 3 years ago

screenshot-2021-04-03-19:22:15

ro-n commented 3 years ago
Screen Shot 2021-04-07 at 4 12 46 PM
ro-n commented 3 years ago

But how do I add custom sections on the originals?

let g:dashboard_custom_section = {
  \ 'buffer_list': {
      \ 'description': [' Recently lase session                 SPC b b'],
      \ 'command': ':e .vimrc'}
\ }

it just removes all of the originals, when I set as above, there is only one entry.

Did DashBoard just set all the entries with dashboard_custom_section if it exists.

glepnir commented 3 years ago

you can build a command call a function . inside function do open vimrc .then pass the command into section.

konart commented 3 years ago
Снимок экрана 2021-05-01 в 10 21 21

WIP

shaunsingh commented 3 years ago

Is there any way to add an image as the dashboard image for macOS, I found this and I thought it was really cute:

https://user-images.githubusercontent.com/71196912/117590509-d7e11900-b0fd-11eb-82bc-6d5eb9957ae1.png

konart commented 3 years ago

@shaunsingh you can use this converter: https://505e06b2.github.io/Image-to-Braille/ Be sure to chose "Value" option instead of the default "Luminance" to see the details

shaunsingh commented 3 years ago
image

After a bit of editing this is what I got, I think it came out quite nice

Code: https://github.com/shaunsingh/vimrc-dotfiles/blob/193761d4597c0d2395391a0dad830ddf1b86f581/nvim/init.lua#L852

Vanderscycle commented 3 years ago

Decided to go with a meme from reddit. Also, sry for the indent lines, not sure why they show. dashboardImg

ChristianChiarulli commented 3 years ago

image

zootedb0t commented 3 years ago

Here is mine: image Does anyone know how can I add colors to the header btw?

You can use vim.cmd 'hi DashboardHeader ' to add colors to header.

zootedb0t commented 3 years ago

Screenshot (3)

pesader commented 3 years ago

@konart Awesome config! How did you display modified and untracked files on the footer?

konart commented 3 years ago

@PeSader I'm using Telescope's utils to get the info and then add it to the dashboard's footer:

local utils = require('telescope.utils')
local set_var = vim.api.nvim_set_var

local git_root, ret = utils.get_os_command_output({ "git", "rev-parse", "--show-toplevel" }, vim.loop.cwd())

local function get_dashboard_git_status()
  local git_cmd = {'git', 'status', '-s', '--', '.'}
  local output = utils.get_os_command_output(git_cmd)
  set_var('dashboard_custom_footer', {'Git status', '', unpack(output)})
end

if ret ~= 0 then
  local is_worktree = utils.get_os_command_output({ "git", "rev-parse", "--is-inside-work-tree" }, vim.loop.cwd())
  if is_worktree[1] == "true" then
    get_dashboard_git_status()
  else
    set_var('dashboard_custom_footer', {'Not in a git directory'})
  end
else
    get_dashboard_git_status()
end
CodedCraft commented 3 years ago

@shaunsingh Your logo came out looking great! What tool did you use for it?

EpsilonKu commented 3 years ago

sus When Imposter is SUS

eaxly commented 3 years ago

image

This is my Configuration. What I really like, is the quote in the footer of dashboard. It will display the Gandalf quote, but replace Frodo with $USER on linux/macOS or %USERNAME% on windows (although I don't know if it works on windows)

louishuyng commented 3 years ago

Here is my config

Screen Shot 2021-08-28 at 17 59 16

rebelot commented 3 years ago
Screenshot 2021-09-08 at 16 38 51

inspired from @shaunsingh added custom mappings

as an aside, I would reconmend improving the shortcut highlight group, single keys (eg.: 'q') or symbols (eg.: ' q') are not highlighted.

it would be nice to define

let g:dashboard_custom_section={
  \ 'section': {
      \ 'description': ['Text...'],
      \ 'command': 'Some Command' or function('your funciton name')
      \ 'shortcut': "<leader> hjkl"}
  \ }
local g = vim.g
g.dashboard_session_directory = '~/.config/nvim/.sessions'
g.dashboard_default_executive ='telescope'
g.dashboard_custom_section = {
    a = {description = {"  Find File                 leader f f"}, command = "Telescope find_files"},
    b = {description = {"  Recents                   leader f h"}, command = "Telescope oldfiles"},
    c = {description = {"  Find Word                 leader f g"}, command = "Telescope live_grep"},
    d = {description = {"  New File                  leader e n"}, command = "DashboardNewFile"},
    e = {description = {"  Bookmarks                 leader m  "}, command = "Telescope marks"},
    f = {description = {"  Load Last Session         leader l  "}, command = "SessionLoad"},
    g = {description = {"  Update Plugins            leader u  "}, command = "PackerUpdate"},
    h = {description = {"  Settings                  leader e v"}, command = "edit $MYVIMRC"},
    i = {description = {"  Exit                      leader q  "}, command = "exit"}
}

g.dashboard_custom_footer = {'type  :help<Enter>  or  <F1>  for on-line help'}
vim.cmd [[
augroup dashboard_au
     autocmd! * <buffer>
     autocmd User dashboardReady let &l:stl = 'Dashboard'
     autocmd User dashboardReady nnoremap <buffer> <leader>q <cmd>exit<CR>
     autocmd User dashboardReady nnoremap <buffer> <leader>u <cmd>PackerUpdate<CR>
     autocmd User dashboardReady nnoremap <buffer> <leader>l <cmd>SessionLoad<CR>
augroup END
]]

g.dashboard_custom_header = {
       "            :h-                                  Nhy`               ",
       "           -mh.                           h.    `Ndho               ",
       "           hmh+                          oNm.   oNdhh               ",
       "          `Nmhd`                        /NNmd  /NNhhd               ",
       "          -NNhhy                      `hMNmmm`+NNdhhh               ",
       "          .NNmhhs              ```....`..-:/./mNdhhh+               ",
       "           mNNdhhh-     `.-::///+++////++//:--.`-/sd`               ",
       "           oNNNdhhdo..://++//++++++/+++//++///++/-.`                ",
       "      y.   `mNNNmhhhdy+/++++//+/////++//+++///++////-` `/oos:       ",
       " .    Nmy:  :NNNNmhhhhdy+/++/+++///:.....--:////+++///:.`:s+        ",
       " h-   dNmNmy oNNNNNdhhhhy:/+/+++/-         ---:/+++//++//.`         ",
       " hd+` -NNNy`./dNNNNNhhhh+-://///    -+oo:`  ::-:+////++///:`        ",
       " /Nmhs+oss-:++/dNNNmhho:--::///    /mmmmmo  ../-///++///////.       ",
       "  oNNdhhhhhhhs//osso/:---:::///    /yyyyso  ..o+-//////////:/.      ",
       "   /mNNNmdhhhh/://+///::://////     -:::- ..+sy+:////////::/:/.     ",
       "     /hNNNdhhs--:/+++////++/////.      ..-/yhhs-/////////::/::/`    ",
       "       .ooo+/-::::/+///////++++//-/ossyyhhhhs/:///////:::/::::/:    ",
       "       -///:::::::////++///+++/////:/+ooo+/::///////.::://::---+`   ",
       "       /////+//++++/////+////-..//////////::-:::--`.:///:---:::/:   ",
       "       //+++//++++++////+++///::--                 .::::-------::   ",
       "       :/++++///////////++++//////.                -:/:----::../-   ",
       "       -/++++//++///+//////////////               .::::---:::-.+`   ",
       "       `////////////////////////////:.            --::-----...-/    ",
       "        -///://////////////////////::::-..      :-:-:-..-::.`.+`    ",
       "         :/://///:///::://::://::::::/:::::::-:---::-.-....``/- -   ",
       "           ::::://::://::::::::::::::----------..-:....`.../- -+oo/ ",
       "            -/:::-:::::---://:-::-::::----::---.-.......`-/.      ``",
       "           s-`::--:::------:////----:---.-:::...-.....`./:          ",
       "          yMNy.`::-.--::..-dmmhhhs-..-.-.......`.....-/:`           ",
       "         oMNNNh. `-::--...:NNNdhhh/.--.`..``.......:/-              ",
       "        :dy+:`      .-::-..NNNhhd+``..`...````.-::-`                ",
       "                        .-:mNdhh:.......--::::-`                    ",
       "                           yNh/..------..`                          ",
       "                                                                    ",
       "                              N E O V I M                           ",
       }
Akselmo commented 3 years ago

How do you align the custom menus together?

Here's how mine looks like but I'd like all of the menus be aligned to left so it looks more "flush" image

danielnehrig commented 3 years ago

@Akselmo hammering down on the spacebar until it fits

Akselmo commented 3 years ago

Yup, that did the trick, thanks. image

ACuteWoof commented 3 years ago

image Very basic, first time using this plugin and I'm lovin' it

FrenzyExists commented 3 years ago

image

image

Pikachu!

IAMSolaara commented 3 years ago

I got my logo to display: image

But it should really look like this (a.k.a. I need terminal escape sequences to work.): image

How did you get yours to work @EpsilonKu ?

IAMSolaara commented 3 years ago

What I get right now (pasting the contents of a lolcat output I get this: Screenshot from 2021-11-05 18-19-19

I did it through the

let g:dashboard_custom_header =<< trim END
<stuff>
END

Tried without trim to no avail.

EpsilonKu commented 3 years ago

@lorecast162 Well, u need to show that lolcat will render it.

        let g:dashboard_preview_command = 'cat'
    let g:dashboard_preview_pipeline = 'lolcat --spread=2.5 -t --seed=156'
IAMSolaara commented 3 years ago

@EpsilonKu So it has to rerender it with lolcat all the time?

IAMSolaara commented 3 years ago

Because by "lolcat output" I meant the text from a lolcat output pasted right in my config

EpsilonKu commented 3 years ago

Yea, I made like that. It will rerender everytime.

txtyash commented 3 years ago

screenshot_20211107_001536

txtyash commented 3 years ago

https://github.com/zim0369/dotfiles/tree/main/config/nvim

FrenzyExists commented 3 years ago

nice

IAMSolaara commented 3 years ago

@EpsilonKu I got it to show the text how I wanted (had to remove your options tho, apparently they're not in my version of lolcat (f35 repos) ) but I have another issue now: I cannot get rid of the [Process exited 0] text... image

Apparently another user had the same issue in https://github.com/glepnir/nvim/issues/20 (I cannot read chinese)

EpsilonKu commented 3 years ago

@lorecast162 Just give fixed length.

jrock2004 commented 2 years ago
Снимок экрана 2021-05-01 в 10 21 21

WIP

Where can I get this? I so want that