From b030cf491b5abc540038d91dda9420ca0ef6ddf3 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 10 Mar 2021 19:42:09 +0300 Subject: feat(vim): configure startify plugin --- .vimrc | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.vimrc b/.vimrc index de468b9..04f35f4 100644 --- a/.vimrc +++ b/.vimrc @@ -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/ -- cgit v1.2.3