@@ 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