nvimdev / dashboard-nvim

vim dashboard
MIT License
2.3k stars 187 forks source link

[🐛] Dont display ascii colors and styles #356

Closed TheElegantCoding closed 1 year ago

TheElegantCoding commented 1 year ago

Describe the bug i have this ascii art and display well with dashboard but i cant cahnge the colors of hte art, this is a example with normal text.

local header = { [[ \x1B[1;34m HELLO WORLD !!! ]] }

so this display the entire string and ignore the ascii escape whit the color and the bold font the result in nvim is.

\x1B[1;34m HELLO WORLD !!!

The expected result should be the string and the color whit the styles, i am new to neovim so i dont kwon how to achieve this with dashboard, this will be nice so it will be posibble to have a ascii art with differents colors

glepnir commented 1 year ago

use preview . puts you header with ansi code in a file and config preview command use cat.

TheElegantCoding commented 1 year ago

it is this also possible to do with the footer ?

glepnir commented 1 year ago

nope just support header.

iguii commented 1 year ago

@glepnir Could you please provide an example configuration? so far I've tried this:

use preview . puts you header with ansi code in a file and config preview command use cat.

Is there anything I'm doing wrong here?

glepnir commented 1 year ago

use preview to show ascii text with ansi color