Last active
August 18, 2021 18:19
-
-
Save ELLIOTTCABLE/12f6e43de7c85314bf6fdc7b69a1e24b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" #### Startify | |
augroup update-startify | augroup | |
function! s:restartify() abort | |
echom 'restartify' | |
call s:startify_dirmode() | |
Startify | |
endfunction | |
function! s:startify_dirmode() abort | |
echom 'startify_dirmode' | |
autocmd! update-startify | |
let g:startify_change_cmd = 'lcd' | |
let g:startify_change_to_vcs_root = 1 | |
let g:startify_lists = [ | |
\ { 'type': 'dir', 'header': [' Recent files ('.getcwd().'):'] }, | |
\ { 'type': 'files', 'header': [' Recent files elsewhere:'] }, | |
\ { 'type': 'sessions', 'header': [' Sessions:'] }, | |
\ { 'type': 'bookmarks', 'header': [' Bookmarks:'] }, | |
\ { 'type': 'commands', 'header': [' Commands:'] }, | |
\ ] | |
let g:startify_files_number = 10 | |
endfunction | |
call s:startify_dirmode() | |
" If, and only if, the first window-boot Startify instance is in the Home folder; set it up to | |
" follow any forthcoming `:cd`. | |
if getcwd() ==# $HOME | |
echom 'Startify: home' | |
let g:startify_change_cmd = 'cd' | |
let g:startify_change_to_vcs_root = 1 | |
augroup update-startify | au! | |
autocmd DirChanged * echom 'DirChanged' | call s:restartify() | |
autocmd User StartifyAllBuffersOpened echom 'StAll...' | call s:startify_clear_autocmds() | |
augroup END | |
let g:startify_lists = [ | |
\ { 'type': 'files', 'header': [' Recent files:'] }, | |
\ { 'type': 'sessions', 'header': [' Sessions:'] }, | |
\ { 'type': 'bookmarks', 'header': [' Bookmarks:'] }, | |
\ { 'type': 'commands', 'header': [' Commands:'] }, | |
\ ] | |
let g:startify_files_number = 20 | |
endif | |
let g:startify_bookmarks = [ '~/.vimrc', '~/.zshrc', '$COC_VIMCONFIG/coc-settings.json' ] | |
let g:startify_commands = [ ':help reference', ':PlugUpdate', [':VTerm', ':exe "105VTerm" | set wfw'] ] | |
let g:startify_skiplist = [ | |
\ 'COMMIT_EDITMSG', | |
\ ] | |
let g:startify_fortune_use_unicode = v:true | |
let g:startify_update_oldfiles = v:true | |
let g:startify_change_to_dir = v:false | |
" let g:startify_change_to_vcs_root = v:true " configured above | |
let g:startify_use_env = v:true | |
let g:startify_custom_indices = ['a', 'd', 'f', 'h', 'l', 'w', 'r', 'y', 'o', 'p', 'z', 'x', 'c', | |
\ 'n', 'm', ',', 'A', 'D', 'F', 'H', 'L', 'W', 'R', 'Y', 'O', 'P', 'Z', 'X', 'C', 'N'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment