dashboard-nvim
dashboard-nvim copied to clipboard
Custom Header Titles
trafficstars
Custom header titles generated by FIGlet font and parser. Moved the header file down one and added a Fonts folder.
made header config less specific by giving type
config = {
header = {
type = "week" -- or default or custom
}
}
Example Custom Header
config = {
header = {
type = "Custom"
text = "Goodby World"
font = "ANSI Shadow"
}
}
I would like the header to eventually reflect the project names
parsing figlet with a pulled in environment variable works. Added a function in utils for grabbing path. I'm not sure if there was already a way to do this but it works. The font parse works for simple spaced font but it wont do anything more complicated than that. I haven't seen any noticeable slowdowns but I'm sure some optimizations can be made. caching rendered names would be a good start.