Switched buffer bar to lightline-buffer
This commit is contained in:
38
vim/.vimrc
38
vim/.vimrc
@@ -80,7 +80,12 @@ nnoremap <S-Tab> :bprev<CR>
|
||||
nnoremap <space> za
|
||||
|
||||
" NERDTree, open/close toggle
|
||||
map <C-n> :NERDTreeToggle<CR>
|
||||
" map <C-n> :NERDTreeToggle<CR>
|
||||
|
||||
map <C-n> :NnnPicker<CR>
|
||||
|
||||
" Opens the nnn window in a split
|
||||
let g:nnn#layout = { 'left': '~30%' } " or right, up, down
|
||||
|
||||
"lightline colorscheme
|
||||
let g:lightline = {'colorscheme': 'powerline',}
|
||||
@@ -92,16 +97,17 @@ call plug#begin('~/.vim/plugged') " vim-plug
|
||||
|
||||
Plug 'VundleVim/Vundle.vim'
|
||||
Plug 'tpope/vim-fugitive'
|
||||
Plug 'scrooloose/nerdtree'
|
||||
"Plug 'scrooloose/nerdtree'
|
||||
Plug 'tmhedberg/SimpylFold'
|
||||
Plug 'vim-scripts/indentpython.vim'
|
||||
Plug 'scrooloose/syntastic'
|
||||
Plug 'nvie/vim-flake8' " PEP 8 checking plugin
|
||||
Plug 'itchyny/lightline.vim'
|
||||
Plug 'taohexxx/lightline-buffer'
|
||||
"Plug 'klen/python-mode'
|
||||
Plug 'davidhalter/jedi-vim'
|
||||
Plug 'tpope/vim-surround'
|
||||
Plug 'ap/vim-buftabline'
|
||||
"Plug 'ap/vim-buftabline'
|
||||
Plug 'wellle/targets.vim'
|
||||
Plug 'junegunn/goyo.vim'
|
||||
Plug 'junegunn/fzf.vim'
|
||||
@@ -110,3 +116,29 @@ Plug 'mcchrish/nnn.vim'
|
||||
call plug#end() " end vim-plug
|
||||
|
||||
filetype plugin indent on " required
|
||||
|
||||
" use lightline-buffer in lightline
|
||||
let g:lightline = {
|
||||
\ 'tabline': {
|
||||
\ 'left': [ [ 'bufferinfo' ],
|
||||
\ [ 'separator' ],
|
||||
\ [ 'bufferbefore', 'buffercurrent', 'bufferafter' ], ],
|
||||
\ 'right': [ [ 'close' ], ],
|
||||
\ },
|
||||
\ 'component_expand': {
|
||||
\ 'buffercurrent': 'lightline#buffer#buffercurrent',
|
||||
\ 'bufferbefore': 'lightline#buffer#bufferbefore',
|
||||
\ 'bufferafter': 'lightline#buffer#bufferafter',
|
||||
\ },
|
||||
\ 'component_type': {
|
||||
\ 'buffercurrent': 'tabsel',
|
||||
\ 'bufferbefore': 'raw',
|
||||
\ 'bufferafter': 'raw',
|
||||
\ },
|
||||
\ 'component_function': {
|
||||
\ 'bufferinfo': 'lightline#buffer#bufferinfo',
|
||||
\ },
|
||||
\ 'component': {
|
||||
\ 'separator': '',
|
||||
\ },
|
||||
\ }
|
||||
|
||||
Reference in New Issue
Block a user