summaryrefslogtreecommitdiff
path: root/after/plugin/vim-startify.rc.vim
blob: 2c9c317e4619dacacfa6bd0c7e7c76ac3c40fa11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
" Bender's thought
" let g:startify_custom_header_quotes = [["Bite my", "shiny metal", "config"]]

" Homer's thought
" let g:startify_custom_header_quotes = [["DOH!", "There doesn't seem to be any any key!"]]

" Luffy's though
let g:startify_custom_header_quotes = [["Posessing a body with the properties of rubber and fighting in whatever way he fancies, bringing smiles to the faces of people, the warrior of liberation, also known as...", "", "Nika the Sun God."]]

" Chopper's thought
" let g:startify_custom_header_quotes = [["Can we get much higher?"]]

" TODO: Remove this? This is if I want multiple ascii arts, which I don't
" really.
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',
  \ ]
  \ ]

" Pulled from https://www.asciiart.eu
let g:asciis = [
 \ [
 \ '                             __',
 \ '                   _ ,___,-''",-=-.',
 \ '       __,-- _ _,-''_)_  (""`''-._\ `.',
 \ '    _,''  __ |,'' ,-'' __)  ,-     /. |',
 \ '  ,''_,--''   |     -''  _)/         `\',
 \ ','',''      ,''       ,-''_,`           :',
 \ ',''     ,-''       ,(,-(              :',
 \ '     ,''       ,-'' ,    _            ;',
 \ '    /        ,-._/`---''            /',
 \ '   /        (____)(----. )       ,''',
 \ '  /         (      `.__,     /\ /,',
 \ ' :           ;-.___         /__\/|',
 \ ' |         ,''      `--.      -,\ |',
 \ ' :        /            \    .__/',
 \ '  \      (__            \    |_',
 \ '   \       ,`-, *       /   _|,\',
 \ '    \    ,''   `-.     ,''_,-''    \',
 \ '   (_\,-''    ,''\")--,''-''       __\',
 \ '    \       /  // ,''|      ,--''  `-.',
 \ '     `-.    `-/ \''  |   _,''         `.',
 \ '        `-._ /      `--''/             \',
 \ '           ,''           |              \',
 \ '          /             |               \',
 \ '       ,-''              |               /',
 \ '     /                 |             -',
 \ ]
 \ ]


" pulled from https://emojicombos.com/one-piece-ascii-art
let g:asciis = [
 \ [
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀',
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⣿⠀⠀⠀⢠⣾⣧⣤⡖⠀⠀⠀⠀⠀⠀⠀',
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⢀⣼⠋⠀⠉⠀⢄⣸⣿⣿⣿⣿⣿⣥⡤⢶⣿⣦⣀⡀',
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⡆⠀⠀⠀⣙⣛⣿⣿⣿⣿⡏⠀⠀⣀⣿⣿⣿⡟',
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⠙⠻⠷⣦⣤⣤⣬⣽⣿⣿⣿⣿⣿⣿⣿⣟⠛⠿⠋⠀',
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⠋⣿⣿⣿⣿⣿⣿⣿⣿⢿⣿⣿⡆⠀⠀',
 \ '⠀⠀⠀⠀⣠⣶⣶⣶⣿⣦⡀⠘⣿⣿⣿⣿⣿⣿⣿⣿⠿⠋⠈⢹⡏⠁⠀⠀',
 \ '⠀⠀⠀⢀⣿⡏⠉⠿⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡆⠀⢀⣿⡇⠀⠀⠀',
 \ '⠀⠀⠀⢸⣿⠀⠀⠀⠀⠀⠙⢿⣿⣿⣿⣿⣿⣿⣿⣿⣟⡘⣿⣿⣃⠀⠀⠀',
 \ '⣴⣷⣀⣸⣿⠀⠀⠀⠀⠀⠀⠘⣿⣿⣿⣿⠹⣿⣯⣤⣾⠏⠉⠉⠉⠙⠢⠀',
 \ '⠈⠙⢿⣿⡟⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣄⠛⠉⢩⣷⣴⡆⠀⠀⠀⠀⠀',
 \ '⠀⠀⠀⠋⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⣿⣿⣿⣀⡠⠋⠈⢿⣇⠀⠀⠀⠀⠀',
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⠿⠿⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀',
 \ ]
 \ ]

let g:chopper_ascii = [
 \ [
 \ '⠀⠆⠠⠄⠠⠄⠠⠄⡐⠠⠄⠄⠂⠤⠠⠄⠤⠠⠄⠤⢀⡐⢀⠂⡔⠠⢂⠔⢂⠰⣀⠒⢄⠒⠤⠒⡐⢢⠒⡰⢂⠒⡔⢢⠒⡔⠢⠜⡐⢆',
 \ '⠁⢂⠡⠈⡐⠈⠀⠀⠠⠁⠌⠠⢁⠂⠡⢈⡐⠠⠈⠄⣂⣴⡶⣟⡾⣿⠿⣿⢿⡷⣶⣮⣤⣘⡀⢣⠘⠤⡑⢄⠣⡘⢄⠣⡘⠤⡙⢌⠱⣈',
 \ '⠈⠄⠠⠁⡀⠀⠀⢀⡴⣟⣾⡀⠂⠌⡁⢂⠠⢁⣼⡿⣻⢵⣫⠷⣝⡾⣹⢮⢷⣹⢧⣏⠿⡽⣿⣶⣬⡂⢌⠢⠑⡌⠢⡑⢌⠢⡑⢌⠢⣁',
 \ '⠀⠂⠐⠀⡐⠀⢄⣯⢳⣿⠏⠀⠌⢰⣞⡳⡄⢻⡻⣼⢳⣏⠞⠛⠳⡽⣭⢻⢮⡗⣯⢞⣻⡵⣳⢽⣳⡿⣦⡂⡱⢀⠣⢘⠠⡑⠨⢄⠃⡄',
 \ '⠀⠀⠀⠀⠀⠀⡼⣎⣿⡏⠀⠌⠀⣿⣼⣷⠷⣎⡷⣭⢷⠁⠀⠀⠀⠈⢾⡭⢷⣫⠷⠯⠓⠙⠳⢯⢶⡻⣟⣿⣄⢂⠡⠊⢄⠡⢃⠢⡁⠆',
 \ '⠀⠀⠀⠈⠀⢰⡻⣜⣿⣁⠀⠀⣸⣿⣿⢯⡻⣵⢻⣜⢯⢆⠀⠀⠀⠀⠈⠉⠁⠀⠀⠀⠀⠀⠀⢫⡗⣯⠽⣞⡿⣷⡄⢃⡐⢢⡁⢦⣱⣼',
 \ '⠀⠄⠂⠈⠀⢸⡳⣽⣿⢿⣇⣤⣿⣿⣽⡷⣿⣼⣯⣾⡽⠚⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⡤⣼⣹⢞⡯⣝⡿⣽⣻⣶⣿⣿⢿⣿⢿⣽',
 \ '⠀⠂⠠⠁⢀⢸⣳⣻⢻⣻⡽⣏⡷⣞⠶⣽⢎⡷⣭⡳⣟⠿⣷⢦⣥⡐⠠⠀⠀⢰⡖⣯⣛⣮⢗⣳⡽⣺⣝⢾⣹⣯⢷⣿⣿⡿⣿⣻⣿⣻',
 \ '⠡⠌⡐⢀⣲⢯⣳⡭⣗⡯⡿⣼⢳⣭⢟⣮⠿⣜⣳⣽⣚⢯⣳⢏⡾⣝⠁⠀⢠⣁⢿⣜⣧⢻⡞⣧⣻⠵⣞⢯⢶⣻⣟⡾⣿⢿⠿⣿⣻⣿',
 \ '⡱⠌⡴⢸⣏⣾⢳⡽⣫⣞⠷⣭⡟⣼⢏⡾⣝⢯⣳⢮⡽⣳⢯⣾⡹⣞⣄⡀⣼⣹⢾⣟⣾⢿⣼⢳⡭⣟⡽⣺⢧⣻⢾⣽⣿⣤⣨⢿⣿⣽',
 \ '⡱⡍⣖⡟⣞⢧⡟⣵⡻⣼⢻⡵⣫⡽⣞⡽⠺⠝⠮⠷⣹⢧⣛⡶⣛⣧⢯⡽⣖⢯⣞⡹⣾⢯⣟⡿⣵⡻⣼⢳⣏⣷⡿⣞⣿⣿⣿⡿⣻⠵',
 \ '⠵⣙⠦⣟⣭⢟⣾⢳⡝⣧⠿⣜⠗⠋⠀⠄⣀⡠⣔⠃⠀⢠⠉⠓⠽⣎⡷⣻⠽⣞⢮⢷⣹⢯⣟⣿⣻⣷⡽⣟⣾⢯⡿⣽⣿⣿⢫⣼⣷⣿',
 \ '⢣⠝⡼⣌⢷⣫⡞⣯⣽⣺⣽⡎⢠⣶⣂⣦⠲⠔⠀⠀⠀⣌⢇⡀⠀⠈⠑⢯⡟⣞⡻⣽⣎⡟⣞⢷⣻⢾⣻⣯⣟⣯⢿⣽⣿⡿⣿⡿⣽⣾',
 \ '⠡⢚⡔⠎⠒⠙⠽⣞⣼⡷⠋⠀⠀⠀⠀⣾⢶⣾⡿⣆⡀⠹⡠⣈⢉⠀⠀⠀⠻⣽⣳⢳⢮⣻⣭⡻⣽⣻⣽⢾⣽⣾⣿⣿⡿⢽⣿⣿⣿⣿',
 \ '⠀⠁⠐⠀⠀⠀⠐⣎⡋⠀⠀⠀⠀⠀⠐⡛⠛⠚⠈⠉⠀⠈⡊⢯⣕⣦⠆⠀⠀⢹⣿⢯⣳⢏⡾⣻⡖⣯⢟⣯⡷⣿⣿⠃⠀⠀⣻⣿⣾⣿',
 \ '⠀⠀⠀⠀⠠⠘⠨⢼⠀⠖⠉⠈⠑⠠⢰⣀⢙⣀⠀⠀⢀⠀⠀⠈⠡⠘⢃⠀⠐⠀⢿⣟⡿⣎⣷⢳⡻⣝⡾⢯⣟⣷⣻⣤⣤⣴⣿⣿⣿⣿',
 \ '⠀⠀⠀⠀⠀⠁⠂⠄⠣⡁⣤⣀⡀⠀⠀⠀⠀⠀⠈⠢⡀⠇⠀⠀⡀⠡⠘⠀⠀⢀⡾⣽⣻⢿⣜⡳⣝⣻⡼⢯⣿⢾⣽⣻⣿⢫⢿⣟⣿⢿',
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣷⣶⣤⣄⡀⠀⠈⠘⠀⠀⠀⠘⡘⠀⢀⣾⣛⡷⣟⣯⡿⣽⢞⡵⣫⢿⡼⣟⡾⣷⢿⣿⡾⣟⣯⣿',
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢹⣿⢟⡿⣏⣿⣹⢯⣟⡷⣶⣤⠀⠀⠁⠀⠅⣄⣾⣳⢯⣟⣯⡷⣟⣿⢾⡹⢧⣛⡾⣽⣻⡽⣯⣿⣟⡿⣛⣟',
 \ '⠀⠀⠀⠀⠀⠀⢀⠀⠠⢔⡸⣡⢯⠙⠙⠺⣭⠷⢯⣽⡳⡗⠀⠀⠀⠀⠀⠀⠀⠀⠙⠟⢾⣟⡿⣯⢿⣻⣏⡷⣝⡷⣿⡽⣷⣿⣷⣷⣿⣿',
 \ '⠀⠀⠀⠀⠀⠰⣅⡰⠁⡨⠁⣞⡼⢄⠀⠀⠀⠙⠣⢶⡹⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠟⠽⠻⡽⣯⣟⣮⠽⣷⣻⢷⣿⣿⣿⣿⣿',
 \ '⠀⠀⠀⠀⠀⠀⠉⠀⠀⠠⠀⠙⠮⣓⡧⢦⢠⢄⡠⣬⠗⠇⠀⡀⠀⠁⠀⠀⠀⠀⢀⣀⣀⢀⡀⠀⠀⠀⠀⠈⢵⣿⣻⣽⣿⣿⣿⣿⣿⣿',
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⢅⠠⢀⠀⠉⠙⠛⠚⠋⢁⠊⣠⠾⠀⢀⠀⠀⠀⠀⠀⠈⠙⠛⣻⣿⣿⣷⣶⣶⣄⠀⠉⢹⣿⣿⣿⣿⣿⣿⣿',
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⠀⠜⠀⠑⠄⢈⠐⢀⡀⠒⢀⠱⠉⠀⠀⠀⠀⡀⣀⣼⢦⣀⠰⣦⣬⣽⣿⣿⣿⣿⣿⣿⣦⠀⢈⣙⣿⣿⣿⣿⣿⣿',
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⢠⠀⠀⠀⠀⠀⠀⠉⠀⠀⠀⠀⢀⠀⠀⠰⠃⠀⠀⣿⣏⡟⠣⡘⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿',
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⠸⠀⠀⠀⡀⠀⠄⠀⠠⠀⠰⠄⠀⠠⠘⠀⠈⠀⢀⡿⣞⠁⠀⠱⡘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿',
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⠀⡄⠀⠀⢀⠠⠀⠈⢀⠠⠀⠀⢀⠀⢀⠀⠄⠀⣼⣻⠍⠀⠀⠐⣿⡜⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿',
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⢠⣷⡄⠁⠀⠀⠀⠂⠀⠀⡀⠈⠀⢀⠠⠀⠀⣸⣷⡏⠀⠀⠀⣼⡿⠃⣸⣿⡿⠿⢿⡿⢿⠻⠉⠆⡌⢌⠡⡩⢘⡌',
 \ '⠀⠀⠀⠀⠀⠀⠀⠀⠀⠋⠙⣦⣀⠐⠀⠀⠁⠀⠀⠐⠀⠠⠀⢐⣼⣿⡟⠀⠀⢀⣾⣿⣇⢰⡿⠁⠀⠀⠀⠀⠀⠀⠁⠒⠈⠄⠣⢐⠡⠒',
 \ ]
 \ ]

let g:thought = [
    \ '\',
    \ ' \',
  \]

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))])))))'

" Saves files last open whenever I quit out of vim
let g:startify_session_persistence = 1

" Sorts the session by last modified time instead of alphabetically
let g:startify_session_sort = 1

let g:startify_lists = [
	  \ { 'type': 'sessions',  'header': ['   Sessions']       },
	  \ { 'type': 'commands',  'header': ['   Commands']       },
	  \ ]
	  " I don't really like these. They open you in whatever directory the
	  " file is in, which might be ok for some people, but is messes with my
	  " ctrl-p (find file) shortcut and also nerd tree. I also haven't found
	  " any use for bookmarks yet
	  " \ { 'type': 'bookmarks', 'header': ['   Bookmarks']      }, 
	  " \ { 'type': 'files',     'header': ['   MRU']            },
	  " \ { 'type': 'dir',       'header': ['   MRU '. getcwd()] },

let g:startify_commands = [
			\['Work Vimwiki', 'VimwikiIndex 3'],
			\['Personal Vimwiki', 'VimwikiIndex 1'],
			\["Today's Diary", 'VimwikiMakeDiaryNote'],
			\]