···1717"plugs to intall
1818call plug#begin('~/.config/nvim/vim-plug')
1919"theme
2020-Plug 'vim-airline/vim-airline'
2120Plug 'sheerun/vim-polyglot'
2221"themes
2322Plug 'joshdick/onedark.vim'
···38373938" comment healper
4039" Plug 'preservim/nerdcommenter'
4040+Plug 'tpope/vim-commentary'
41414242" should be installed out of the box by neovim?
4343Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
···6363Plug 'junegunn/fzf.vim'
64646565"File Navigation
6666+Plug 'vim-airline/vim-airline'
6767+"Plug 'kyazdani42/nvim-web-devicons' "Im using vim-devicons without color as it uses by nerdtree as well " Recommended (for coloured icons)
6868+Plug 'ryanoasis/vim-devicons' "Icons without colours and used by NerdTree
6969+Plug 'akinsho/bufferline.nvim', { 'tag': 'v2.*' }
7070+6671Plug 'kevinhwang91/rnvimr' "replaces 'francoiscabrol/ranger.vim'
6772Plug 'preservim/nerdtree'
6873Plug 'Xuyuanp/nerdtree-git-plugin' "git status in nerdtree
6969-Plug 'ryanoasis/vim-devicons' "add file-icons to nerdtree
70747175"fast async search
7276Plug 'dyng/ctrlsf.vim'
···290294" nnoremap <C-l> <C-w>l
291295292296"tab and airline tabs navigation
293293-nmap <leader>1 :bfirst<CR>
294294-nmap <leader>2 :bfirst<CR>:bn<CR>
295295-nmap <leader>3 :bfirst<CR>:2bn<CR>
296296-nmap <leader>4 :bfirst<CR>:3bn<CR>
297297-nmap <leader>5 :bfirst<CR>:4bn<CR>
298298-nmap <leader>6 :bfirst<CR>:5bn<CR>
299299-nmap <leader>7 :bfirst<CR>:6bn<CR>
300300-nmap <leader>8 :bfirst<CR>:7bn<CR>
297297+" nmap <leader>1 :bfirst<CR>
298298+" nmap <leader>2 :bfirst<CR>:bn<CR>
299299+" nmap <leader>3 :bfirst<CR>:2bn<CR>
300300+" nmap <leader>4 :bfirst<CR>:3bn<CR>
301301+" nmap <leader>5 :bfirst<CR>:4bn<CR>
302302+" nmap <leader>6 :bfirst<CR>:5bn<CR>
303303+" nmap <leader>7 :bfirst<CR>:6bn<CR>
304304+" nmap <leader>8 :bfirst<CR>:7bn<CR>
305305+" for bufferline navigation
306306+nnoremap <silent><leader>1 <Cmd>BufferLineGoToBuffer 1<CR>
307307+nnoremap <silent><leader>2 <Cmd>BufferLineGoToBuffer 2<CR>
308308+nnoremap <silent><leader>3 <Cmd>BufferLineGoToBuffer 3<CR>
309309+nnoremap <silent><leader>4 <Cmd>BufferLineGoToBuffer 4<CR>
310310+nnoremap <silent><leader>5 <Cmd>BufferLineGoToBuffer 5<CR>
311311+nnoremap <silent><leader>6 <Cmd>BufferLineGoToBuffer 6<CR>
312312+nnoremap <silent><leader>7 <Cmd>BufferLineGoToBuffer 7<CR>
313313+nnoremap <silent><leader>8 <Cmd>BufferLineGoToBuffer 8<CR>
314314+nnoremap <silent><leader>9 <Cmd>BufferLineGoToBuffer 9<CR>
301315302316nmap gt :bnext<CR>
303317nmap gT :bprevious<CR>
···464478465479" lua basic settings
466480lua require('my_basic')
481481+" lua plugins settings
482482+lua require('plugins.bufferline')
467483468484469485set encoding=utf8
486486+let g:airline#extensions#tabline#enabled = 0 "because using bufferline
470487let g:airline_powerline_fonts = 1 "If you want the powerline symbols
471488" let g:airline_filetype_overrides = {
472489" \ 'coc-explorer': [ 'CoC Explorer', '' ],
···475492" \ 'nerdtree': [ get(g:, 'NERDTreeStatusline', 'NERD'), '' ],
476493" \ 'vim-plug': [ 'Plugins', '' ],
477494" \ }
478478-479495480496"set bg=dark
481497"let g:gruvbox_contrast_dark = 'hard'
+8
nvim/lua/plugins/bufferline.lua
···11+require('bufferline').setup {
22+ options = {
33+ mode = "buffers", -- set to "tabs" to only show tabpages instead
44+ close_command = "bdelete! %d", -- can be a string | function, see "Mouse actions"
55+ right_mouse_command = "bdelete! %d", -- can be a string | function, see "Mouse actions"
66+ left_mouse_command = "buffer %d", -- can be a string | function, see "Mouse actions"
77+ }
88+}