nvimdev / dashboard-nvim

vim dashboard
MIT License
2.39k stars 192 forks source link

Preview weird background color problem #482

Open fqidz opened 2 months ago

fqidz commented 2 months ago

The background color looks different in the dashboard. I am using alacritty. I have rose-pine theme installed in both nvim and alacritty. The default background color for my terminal is the same with nvim's background color, so there should be no difference. What is happening here?

image

config:

require('dashboard').setup {
  theme = 'hyper',
  shortcut_type = 'number',
  preview = {
    command = 'cat',
    file_path = "~/.config/nvim/logo.txt",
    file_width = 54,
    file_height = 12,
  },
  config = {
    shortcut = {
      {
        icon = ' ',
        desc = 'files',
        group = 'Label',
        action = 'Telescope find_files',
        key = 'f',
      },
      {
        desc = ' nixconfig',
        group = 'DiagnosticHint',
        action = 'Telescope find_files search_dirs=/etc/nixos/',
        key = 'n',
      },
      {
        desc = ' dotfiles',
        group = 'Number',
        action = 'Telescope find_files search_dirs=~/.config/',
        -- action = 'Telescope find_files cwd=~/.config/',
        key = 'c',
      },
    },
    footer = {},
  },
}

logo.txt:



███╗   ██╗ ███████╗ ██████╗  ██╗   ██╗ ██╗ ███╗   ███╗
████╗  ██║ ██╔════╝██╔═══██╗ ██║   ██║ ██║ ████╗ ████║
██╔██╗ ██║ █████╗  ██║   ██║ ██║   ██║ ██║ ██╔████╔██║
██║╚██╗██║ ██╔══╝  ██║   ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║
██║ ╚████║ ███████╗╚██████╔╝  ╚████╔╝  ██║ ██║ ╚═╝ ██║
╚═╝  ╚═══╝ ╚══════╝ ╚═════╝    ╚═══╝   ╚═╝ ╚═╝     ╚═╝