Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nvdash won't open #66

Closed
Hurricaane opened this issue Mar 17, 2023 · 12 comments
Closed

Nvdash won't open #66

Hurricaane opened this issue Mar 17, 2023 · 12 comments

Comments

@Hurricaane
Copy link

Hurricaane commented Mar 17, 2023

Describe the bug
Hi ! I'm somewhat of a new user of neovim. I wanted to try Nvchad. Everything went great for the install, but when I want to setup Nvdash, it doesn't work. Nothing appears, even after inputting the command Nvdash.

Here's my chadrc.lua :

-- Chadrc file
-- Custom NvChad configuration (main file)
local M = {}

-- UI Settings
M.ui = {
  -- Theme
  theme = "onedark",
  -- Dashboard
  nvdash = {
    load_on_startup = true,

    header = {
      [[]],
      [[   ⣴⣶⣤⡤⠦⣤⣀⣤⠆     ⣈⣭⣭⣿⣶⣿⣦⣼⣆         ]],
      [[    ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦       ]],
      [[          ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷⠄⠄⠄⠄⠻⠿⢿⣿⣧⣄     ]],
      [[           ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄    ]],
      [[          ⢠⣿⣿⣿⠈  ⠡⠌⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀   ]],
      [[   ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘⠄ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄  ]],
      [[  ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷   ⢊⣿⣿⡏  ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄   ]],
      [[ ⣠⣿⠿⠛⠄⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄  ]],
      [[ ⠙⠃   ⣼⣿⡟  ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇⠄⠛⠻⢷⣄ ]],
      [[      ⢻⣿⣿⣄   ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆     ]],
      [[       ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃     ]],
      [[     ⢰⣶  ⣶ ⢶⣆⢀⣶⠂⣶⡶⠶⣦⡄⢰⣶⠶⢶⣦  ⣴⣶     ]],
      [[     ⢸⣿⠶⠶⣿ ⠈⢻⣿⠁ ⣿⡇ ⢸⣿⢸⣿⢶⣾⠏ ⣸⣟⣹⣧    ]],
      [[     ⠸⠿  ⠿  ⠸⠿  ⠿⠷⠶⠿⠃⠸⠿⠄⠙⠷⠤⠿⠉⠉⠿⠆   ]],
      [[]],
    },

    buttons = {
      { "  Find File", "Spc f f", "Telescope find_files" },
      { "  Recent Files", "Spc f o", "Telescope oldfiles" },
      { "  Find Word", "Spc f w", "Telescope live_grep" },
      { "  Bookmarks", "Spc b m", "Telescope marks" },
      { "  Themes", "Spc t h", "Telescope themes" },
      { "  Mappings", "Spc c h", "NvCheatsheet" },
    },
  },
}

return M

To Reproduce
Steps to reproduce the behavior:

  1. Freshly install Nvchad (v2.0)
  2. Customize your chadrc.lua file to enable Nvdash on startup
  3. Restart neovim
  4. Launch command :Nvdash

Expected behavior
A dashboard with my custom header.

Screenshots
image

Desktop (please complete the following information):

  • Linux - OS : ZorinOS 16.2
  • Using Tmux inside of Wezterm
  • Neovim version : v0.8.3
@siduck siduck transferred this issue from NvChad/NvChad Mar 17, 2023
@siduck
Copy link
Member

siduck commented Mar 17, 2023

image

works for me

@siduck
Copy link
Member

siduck commented Mar 17, 2023

Also please dont use [[]] for strings

@siduck
Copy link
Member

siduck commented Mar 17, 2023

 nvdash = {
    load_on_startup = true,
    header = {
      "   ⣴⣶⣤⡤⠦⣤⣀⣤⠆     ⣈⣭⣭⣿⣶⣿⣦⣼⣆         ",
      "    ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦       ",
      "          ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷⠄⠄⠄⠄⠻⠿⢿⣿⣧⣄     ",
      "           ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄    ",
      "          ⢠⣿⣿⣿⠈  ⠡⠌⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀   ",
      "   ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘⠄ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄  ",
      "  ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷   ⢊⣿⣿⡏  ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄   ",
      " ⣠⣿⠿⠛⠄⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄  ",
      " ⠙⠃   ⣼⣿⡟  ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇⠄⠛⠻⢷⣄ ",
      "      ⢻⣿⣿⣄   ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆     ",
      "       ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃     ",
      "     ⢰⣶  ⣶ ⢶⣆⢀⣶⠂⣶⡶⠶⣦⡄⢰⣶⠶⢶⣦  ⣴⣶     ",
      "     ⢸⣿⠶⠶⣿ ⠈⢻⣿⠁ ⣿⡇ ⢸⣿⢸⣿⢶⣾⠏ ⣸⣟⣹⣧    ",
      "     ⠸⠿  ⠿  ⠸⠿  ⠿⠷⠶⠿⠃⠸⠿⠄⠙⠷⠤⠿⠉⠉⠿⠆   ",
    },
  },

@siduck
Copy link
Member

siduck commented Mar 17, 2023

image

@siduck
Copy link
Member

siduck commented Mar 17, 2023

and then you can override nvdash highlight groups to invert the colors etc

@siduck siduck closed this as completed Mar 17, 2023
@Hurricaane
Copy link
Author

I reinstalled Nvchad, and launched :Nvdash which worked with the default config, but as soon as I change the config (replacing [[]] by ""), nothing works...

I don't know what I am doing wrong

@siduck
Copy link
Member

siduck commented Mar 17, 2023

@Hurricaane can you make a video? I find it hard to believe!

@siduck
Copy link
Member

siduck commented Mar 17, 2023

and make sure your fontsize isnt large or else the dashboard height wont be sufficient and hence dashboard wont open

@Hurricaane
Copy link
Author

It was the fontsize (I feel dumb...)
Sorry for the disturbance and thank you !

@inneroot
Copy link

inneroot commented Aug 25, 2023

and then you can override nvdash highlight groups to invert the colors etc

@siduck Can you please share how to disable inverting of the picture? I the example in https://nvchad.com/docs/features dashboard screenshot, but cant find proper value in config

@siduck
Copy link
Member

siduck commented Aug 26, 2023

@inneroot read https://nvchad.com/docs/config/theming

  1. find highlight groups associated with nvdash ( within base46 repo itself's integration dir )
  2. add them to hl_override

Or if you are lazy to find in that repo, just type nvdash in hl_override table and u will see the available hl groups, thanks to lucario

image

so just set there bg to "none" and fg to some color :D

@inneroot
Copy link

Thx, @siduck, found config in NvChad/base46 repo
Applied to chadrc.lua

M.ui = {
  hl_override = {
    NvDashAscii = {
      fg = "blue",
      bg = "black",
    },
  },

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants