Closed TheElegantCoding closed 1 year ago
use preview . puts you header with ansi code in a file and config preview command use cat.
it is this also possible to do with the footer ?
nope just support header.
@glepnir Could you please provide an example configuration? so far I've tried this:
I have a test.txt which I want to add ASCII escape codes to colorize it
__ _
/\ \ \___ ___/\ /(_)_ __ ____
, , / \/ / _ \/ _ \ \ / | | '_ ` _ \
,-`{-`/ / /\ | __| (_) \ V /| | | | | | |
,-~ , \ {-~~-, \_\ \/ \___|\___/ \_/ |_|_| |_| |_|
,~ , ,`,-~~-,`, v0.9.1
,` , { { } } }/
; ,--/`\ \ / / }/ /,/
; ,-./ \ \ { { ( /,; ,/ ,/
; / ` } } `, `-`-.___ / `, ,/ `,/
\| ,`,` `~.___,---} / ,`,,/ ,`,;
` { { __ / ,`/ ,`,;
/ \ \ _,`, `{ `,{ `,`;`
{ } } /~\ .-:::-. (--, ;\ `,} `,`;
\\._./ / /` , \ ,:::::::::, `~; \},/ `,`; ,-=-
`-..-` /. ` .\_ ;:::::::::::; __,{ `/ `,`; {
/ , ~ . ^ `~`\:::::::::::<<~>-,,`, `-, ``,_ }
/~~ . ` . ~ , .`~~\:::::::; _-~ ;__, `,-`
/`\ /~, . ~ , ' ` , .` \::::;` <<<~``` ``-,,__ ;
/` .`\ /` . ^ , ~ , . ` . ~\~ \\, `,__
/ ` , ,`\. ` ~ , ^ , ` ~ . . ``~~~`, `-`--, \
/ , ~ . ~ \ , ` . ^ ` , . ^ . , ` .`-,___,---,__ ``
/` ` . ~ . ` `\ ` ~ , . , ` , . ~ ^ , . ~ , .`~---,___
/` . ` , . ~ , \ ` ~ , . ^ , ~ . ` , ~ . ^ , ~ . `-,
Version 1.0 iguii/neovim Lua 5.1
Here's the config i have:
require("dashboard").setup({
theme = "hyper",
preview = {
command = "cat",
file_path = "~/test.txt",
file_height = 27,
file_width = 80,
},
}
However, after selecting a file to edit, the banner doesn't dissappear:
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?
use preview to show ascii text with ansi color
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