~antoinentl/vimrc

e2a78a88cd36a75004907eed531364da80cf9e78 — antoinentl 2 years ago 94f6c39
edit: ligthline configuration
1 files changed, 15 insertions(+), 3 deletions(-)

M vimrc
M vimrc => vimrc +15 -3
@@ 14,10 14,10 @@ call plug#begin(expand('~/.vim/plugins'))
Plug 'preservim/nerdtree' |
            \ Plug 'xuyuanp/nerdtree-git-plugin'
Plug 'embark-theme/vim', { 'as': 'embark', 'branch': 'main' }
" Plug 'itchyny/lightline.vim'
Plug 'itchyny/lightline.vim'
Plug 'itchyny/vim-gitbranch'
Plug 'sheerun/vim-polyglot'
Plug 'Rigellute/shades-of-purple.vim'
Plug 'vim-airline/vim-airline'

" List ends here. Plugins become visible to Vim after this call.
call plug#end()


@@ 26,8 26,20 @@ colorscheme shades_of_purple
set number
set numberwidth=2

" Lightline configuration
set laststatus=2
set noshowmode
let g:shades_of_purple_lightline = 1
let g:lightline = { 'colorscheme': 'shades_of_purple' }
let g:lightline = {
      \ 'colorscheme': 'shades_of_purple',
      \ 'active': {
      \   'left': [ [ 'mode', 'paste' ],
      \             [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
      \ },
      \ 'component_function': {
      \   'gitbranch': 'gitbranch#name'
      \ },
      \ }

" Start NERDTree and put the cursor back in the other window.
autocmd VimEnter * NERDTree | wincmd p