summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackson Taylor <jtaylor@classicalconversations.com>2023-09-02 00:02:25 -0400
committerJackson Taylor <jtaylor@classicalconversations.com>2023-09-02 00:02:25 -0400
commit8ccff6792ce85e3c8518997d9bb70ed63e0ae714 (patch)
treea35f5c2add5245921fc88c4405fa7ec636781d8d
parent8b37509f215a070367d96e08739a0483a4ae72d8 (diff)
Set startify header
-rw-r--r--after/plugin/vim-startify.rc.vim47
1 files changed, 41 insertions, 6 deletions
diff --git a/after/plugin/vim-startify.rc.vim b/after/plugin/vim-startify.rc.vim
index d6d0c86..edc9de5 100644
--- a/after/plugin/vim-startify.rc.vim
+++ b/after/plugin/vim-startify.rc.vim
@@ -1,4 +1,4 @@
-let g:startify_custom_header_quotes = [
+let g:old_startify_custom_header_quotes = [
\ ["Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.", '', '- Brian Kernighan'],
\ ["If you don't finish then you're just busy, not productive."],
\ ['Adapting old programs to fit new machines usually means adapting new machines to behave like old ones.', '', '- Alan Perlis'],
@@ -159,7 +159,7 @@ endfunction
" asciis sourced from the interwebs on free ascii sites,
" mostly from https://www.asciiart.eu/
-let g:asciis = [
+let g:old_asciis = [
\ [
\ ' `;,;.;,;.;.`',
\ ' ..:;:;::;: ',
@@ -749,12 +749,47 @@ let g:asciis = [
\ ]
+let g:startify_custom_header_quotes = [["Bite my", 'shiny metal', 'config']]
-let g:thought = [
- \ 'o',
- \ ' O',
+function! Get_random_offset(max) abort
+ return str2nr(matchstr(reltimestr(reltime()), '\.\zs\d\+')[1:]) % a:max
+endfunction
+
+" Pulled from https://www.asciiart.eu/television/futurama
+let g:asciis = [
+ \ [
+ \ ' () ',
+ \ ' JL ',
+ \ ' || ',
+ \ ' LJ ',
+ \ ' _,--"""""""---. ',
+ \ ' / `. ',
+ \ ' / \ ',
+ \ ' J L',
+ \ ' F L',
+ \ ' J J',
+ \ ' | J',
+ \ ' ___L______________ J',
+ \ ' /,---------------. "". J',
+ \ ' JJ / \/ | J J',
+ \ ' LL J J | L J',
+ \ ' JJ J # J # | L |',
+ \ ' \\__`.___,_`.____,/ F |',
+ \ ' ""-.---------....___/ |',
+ \ ' |_T--+---+--.,._ |',
+ \ ' |--|----\---\-`. |',
+ \ ' |__|____J___J_ F F',
+ \ ' _|__|____|___|_/ L',
+ \ ' | L',
+ \ ' |____________________M-K',
+ \ ]
\ ]
+let g:thought = [
+ \ 'o',
+ \ ' O',
+ \]
+
let g:startify_custom_header =
- \ 'startify#center(startify#pad(startify#fortune#boxed() + startify#pad(startify#pad(startify#pad(g:thought + g:asciis[Get_random_offset(len(g:asciis))])))))'
+ \ 'startify#center(startify#pad(startify#fortune#boxed() + startify#pad(startify#pad(startify#pad(g:thought + g:asciis[Get_random_offset(len(g:asciis))])))))'