diff options
author | eug-vs <eug-vs@keemail.me> | 2021-03-10 19:42:09 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-03-10 19:52:09 +0300 |
commit | b030cf491b5abc540038d91dda9420ca0ef6ddf3 (patch) | |
tree | 1539c8dd16bbe4adfc5b4cac282509e277479657 | |
parent | 48a26c17bf23916c04f0e1e462ab36472c4fd892 (diff) | |
download | dotfiles-b030cf491b5abc540038d91dda9420ca0ef6ddf3.tar.gz |
feat(vim): configure startify plugin
-rw-r--r-- | .vimrc | 24 |
1 files changed, 17 insertions, 7 deletions
@@ -79,14 +79,25 @@ call defx#custom#option('_', { \ }) " Startify -let g:startify_custom_header = [ - \ ' ___ __ ______ _ _ _______', - \ ' / _ \/ / / / __ `/____| | / / ___/', - \ ' / __/ /_/ / /_/ /_____/ |/ (__ ) ', - \ ' \___/\__,_/\__, / |___/____/ ', - \ ' /____/ ', +let g:startify_session_delete_buffers = 1 +let g:startify_session_persistence = 1 +let g:startify_change_to_vcs_root = 1 +let g:startify_padding_left = 4 + +let g:startify_custom_header = startify#pad(startify#fortune#cowsay('', '═','║','╔','╗','╝','╚')) + +let g:startify_bookmarks = [ + \ { 'r': '~/.vimrc' }, + \ { 'z': '~/.zshrc' }, +\ ] + +let g:startify_lists = [ + \ { 'type': 'bookmarks', 'header': [' Bookmarks:'] }, + \ { 'type': 'dir', 'header': [' Recently edited files:'] }, + \ { 'type': 'sessions', 'header': [' Sessions:'] }, \] + " startup screen autocmd VimEnter * \ if !argc() @@ -140,4 +151,3 @@ function! VimwikiLinkHandler(link) endfunction " TODO: command to toggle comments https://www.chrisatmachine.com/Neovim/09-vim-commentary/ -" TODO: sessions https://www.chrisatmachine.com/Neovim/11-startify/ |