startup.nvim
startup.nvim copied to clipboard
[Feature Request]Add to headers in Wiki
Describe the solution you'd like Could you add the following to headers section in wiki? I am particularly suggesting this because it has lot of escape sequences.
" __ ",
" ___ ___ ___ __ __ /\\\\_\\ ___ ___ ",
" / _ `\\ / __`\\ / __`\\/\\ \\/\\ \\\\/\\ \\ / __` __`\\ ",
" /\\ \\/\\ \\/\\ __//\\ \\_\\ \\ \\ \\_/ |\\ \\ \\/\\ \\/\\ \\/\\ \\ ",
" \\ \\_\\ \\_\\ \\____\\ \\____/\\ \\___/ \\ \\_\\ \\_\\ \\_\\ \\_\\ ",
" \\/_/\\/_/\\/____/\\/___/ \\/__/ \\/_/\\/_/\\/_/\\/_/ ",

I wonder if an easier way to do this is to capture the result of figlet -f larry3d -d ~/wherever/you/put/the/figlet/contrib/file neovim then put that into the array. Larry3d is pretty close to your ascii art:
__
___ __ ___ __ __ /\_\ ___ ___
/' _ `\ /'__`\ / __`\/\ \/\ \\/\ \ /' __` __`\
/\ \/\ \/\ __//\ \L\ \ \ \_/ |\ \ \/\ \/\ \/\ \
\ \_\ \_\ \____\ \____/\ \___/ \ \_\ \_\ \_\ \_\
\/_/\/_/\/____/\/___/ \/__/ \/_/\/_/\/_/\/_/
Potential downside would be it'd be run every startup. On my machine (thinkpad T420, original CPU, upgraded ssd) it takes 2.23 milliseconds to run (according to time) 0.51ms were user time, 1.8ms were system time.
Alternatively, using multiline strings for each line would not have escape sequences:
❯ lua
Lua 5.4.4 Copyright (C) 1994-2022 Lua.org, PUC-Rio
> "hi"
hi
> [[hi]]
hi
> [[h\i]]
h\i