dotfiles/conf.d/nvim/startscreen.vim

83 lines
2.8 KiB
VimL
Raw Normal View History

2021-02-19 12:14:51 +00:00
" File : startscreen.vim
" Author : Jeff LANCE <email@jefflance.me>
" Date : 01.11.2020
2021-03-03 16:40:10 +00:00
" Last Modified Date: 03.03.2021
2021-02-19 12:14:51 +00:00
" Last Modified By : Jeff LANCE <email@jefflance.me>
"""""""""""""""""""""""""""""""""""""""""""""""""
"
" ____ _____ _ ____ _____ ___ _______ __
" / ___|_ _|/ \ | _ \_ _|_ _| ___\ \ / /
2021-03-03 16:40:10 +00:00
" \___ \ | | / _ \ | |_) || | | || |_ \ V /
" ___) || |/ ___ \| _ < | | | || _| | |
" |____/ |_/_/ \_\_| \_\|_| |___|_| |_|
"
2021-02-19 12:14:51 +00:00
"
""""""""""""""""""""""""""""""""""""""""""""""""
let g:startify_custom_header = 'startify#center(startify#fortune#cowsay())'
2021-02-19 17:58:08 +00:00
let g:startify_session_dir = '${HOME}/.config/nvim/session'
2021-02-19 12:14:51 +00:00
let g:startify_enable_special = 0
let g:startify_files_number = 10
function s:config_mail()
return [
2021-02-19 17:58:08 +00:00
\ { 'line': 'afew', 'cmd': 'edit ${HOME}/.config/afew/' },
\ { 'line': 'astroid', 'cmd': 'edit ${HOME}/.config/astroid/' },
2021-05-05 19:53:58 +00:00
\ { 'line': 'imapfilter', 'cmd': 'edit ${HOME}/.config/imapfilter' },
2021-03-01 21:41:37 +00:00
\ { 'line': 'imapnotify', 'cmd': 'edit ${HOME}/.config/imapnotify' },
2021-02-19 17:58:08 +00:00
\ { 'line': 'mbsync', 'cmd': 'edit ${HOME}/.mbsyncrc' },
2021-05-05 19:53:58 +00:00
\ { 'line': 'msmtp', 'cmd': 'edit ${HOME}/.msmtprc' },
\ { 'line': 'neomutt', 'cmd': 'edit ${HOME}/.config/neomutt' },
2021-02-19 17:58:08 +00:00
\ { 'line': 'notmuch config', 'cmd': 'edit ${HOME}/.notmuch-config' },
2021-03-01 21:41:37 +00:00
\ { 'line': 'notmuch dir', 'cmd': 'edit ${HOME}/Mail/.notmuch' },
2021-02-19 12:14:51 +00:00
\ ]
endfunction
function s:config_openbox()
return [
2021-02-19 17:58:08 +00:00
\ { 'line': 'autostart.sh', 'cmd': 'edit ${HOME}/.config/openbox/autostart.sh' },
\ { 'line': 'rc.xml', 'cmd': 'edit ${HOME}/.config/openbox/rc.xml' }
2021-02-19 12:14:51 +00:00
\ ]
endfunction
function s:config_vim()
return [
2021-02-19 17:58:08 +00:00
\ { 'line': 'général', 'cmd': 'edit ${HOME}/.config/nvim/init.vim' },
\ { 'line': 'fonctions', 'cmd': 'edit ${HOME}/.config/nvim/functions.vim' },
\ { 'line': 'raccourcis clavier', 'cmd': 'edit ${HOME}/.config/nvim/keybindings.vim' },
\ { 'line': 'plugings', 'cmd': 'edit ${HOME}/.config/nvim/plug.vim' },
\ { 'line': "cet écran d'accueil", 'cmd': 'edit ${HOME}/.config/nvim/startscreen.vim' },
2021-02-19 12:14:51 +00:00
\ ]
endfunction
let g:startify_lists = [
\ { 'type': 'commands', 'header': ['FICHIER'] },
\ { 'type': 'files', 'header': ['RÉCENTS'] },
\ { 'type': function('s:config_vim'), 'header': ['VIM CONF:'] },
\ { 'type': function('s:config_mail'), 'header': ['MAIL CONF:'] },
\ { 'type': function('s:config_openbox'), 'header': ['OPENBOX CONF:'] },
\ { 'type': 'bookmarks', 'header': ['SIGNETS'] },
\ { 'type': 'sessions', 'header': ['SESSIONS'] },
\ ]
let g:startify_bookmarks = [
2021-03-03 16:40:10 +00:00
\ '~/.config/',
\ '~/dotfiles/',
\ '~/Projets/',
\ '~/Projets/latex/latex-homework/',
\ '~/.asy/'
2021-02-19 12:14:51 +00:00
\ ]
let g:startify_commands = [
\ ['Nouveau', 'enew'],
\ ['Aide', 'help reference'],
\ ]
" vim:ft=vim