clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bufferline for buffer like tabs, and adding commentary for comments

sspaeti 8230a3b7 8f139c95

+35 -11
+27 -11
nvim/init.vim
··· 17 17 "plugs to intall 18 18 call plug#begin('~/.config/nvim/vim-plug') 19 19 "theme 20 - Plug 'vim-airline/vim-airline' 21 20 Plug 'sheerun/vim-polyglot' 22 21 "themes 23 22 Plug 'joshdick/onedark.vim' ··· 38 37 39 38 " comment healper 40 39 " Plug 'preservim/nerdcommenter' 40 + Plug 'tpope/vim-commentary' 41 41 42 42 " should be installed out of the box by neovim? 43 43 Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} ··· 63 63 Plug 'junegunn/fzf.vim' 64 64 65 65 "File Navigation 66 + Plug 'vim-airline/vim-airline' 67 + "Plug 'kyazdani42/nvim-web-devicons' "Im using vim-devicons without color as it uses by nerdtree as well " Recommended (for coloured icons) 68 + Plug 'ryanoasis/vim-devicons' "Icons without colours and used by NerdTree 69 + Plug 'akinsho/bufferline.nvim', { 'tag': 'v2.*' } 70 + 66 71 Plug 'kevinhwang91/rnvimr' "replaces 'francoiscabrol/ranger.vim' 67 72 Plug 'preservim/nerdtree' 68 73 Plug 'Xuyuanp/nerdtree-git-plugin' "git status in nerdtree 69 - Plug 'ryanoasis/vim-devicons' "add file-icons to nerdtree 70 74 71 75 "fast async search 72 76 Plug 'dyng/ctrlsf.vim' ··· 290 294 " nnoremap <C-l> <C-w>l 291 295 292 296 "tab and airline tabs navigation 293 - nmap <leader>1 :bfirst<CR> 294 - nmap <leader>2 :bfirst<CR>:bn<CR> 295 - nmap <leader>3 :bfirst<CR>:2bn<CR> 296 - nmap <leader>4 :bfirst<CR>:3bn<CR> 297 - nmap <leader>5 :bfirst<CR>:4bn<CR> 298 - nmap <leader>6 :bfirst<CR>:5bn<CR> 299 - nmap <leader>7 :bfirst<CR>:6bn<CR> 300 - nmap <leader>8 :bfirst<CR>:7bn<CR> 297 + " nmap <leader>1 :bfirst<CR> 298 + " nmap <leader>2 :bfirst<CR>:bn<CR> 299 + " nmap <leader>3 :bfirst<CR>:2bn<CR> 300 + " nmap <leader>4 :bfirst<CR>:3bn<CR> 301 + " nmap <leader>5 :bfirst<CR>:4bn<CR> 302 + " nmap <leader>6 :bfirst<CR>:5bn<CR> 303 + " nmap <leader>7 :bfirst<CR>:6bn<CR> 304 + " nmap <leader>8 :bfirst<CR>:7bn<CR> 305 + " for bufferline navigation 306 + nnoremap <silent><leader>1 <Cmd>BufferLineGoToBuffer 1<CR> 307 + nnoremap <silent><leader>2 <Cmd>BufferLineGoToBuffer 2<CR> 308 + nnoremap <silent><leader>3 <Cmd>BufferLineGoToBuffer 3<CR> 309 + nnoremap <silent><leader>4 <Cmd>BufferLineGoToBuffer 4<CR> 310 + nnoremap <silent><leader>5 <Cmd>BufferLineGoToBuffer 5<CR> 311 + nnoremap <silent><leader>6 <Cmd>BufferLineGoToBuffer 6<CR> 312 + nnoremap <silent><leader>7 <Cmd>BufferLineGoToBuffer 7<CR> 313 + nnoremap <silent><leader>8 <Cmd>BufferLineGoToBuffer 8<CR> 314 + nnoremap <silent><leader>9 <Cmd>BufferLineGoToBuffer 9<CR> 301 315 302 316 nmap gt :bnext<CR> 303 317 nmap gT :bprevious<CR> ··· 464 478 465 479 " lua basic settings 466 480 lua require('my_basic') 481 + " lua plugins settings 482 + lua require('plugins.bufferline') 467 483 468 484 469 485 set encoding=utf8 486 + let g:airline#extensions#tabline#enabled = 0 "because using bufferline 470 487 let g:airline_powerline_fonts = 1 "If you want the powerline symbols 471 488 " let g:airline_filetype_overrides = { 472 489 " \ 'coc-explorer': [ 'CoC Explorer', '' ], ··· 475 492 " \ 'nerdtree': [ get(g:, 'NERDTreeStatusline', 'NERD'), '' ], 476 493 " \ 'vim-plug': [ 'Plugins', '' ], 477 494 " \ } 478 - 479 495 480 496 "set bg=dark 481 497 "let g:gruvbox_contrast_dark = 'hard'
+8
nvim/lua/plugins/bufferline.lua
··· 1 + require('bufferline').setup { 2 + options = { 3 + mode = "buffers", -- set to "tabs" to only show tabpages instead 4 + close_command = "bdelete! %d", -- can be a string | function, see "Mouse actions" 5 + right_mouse_command = "bdelete! %d", -- can be a string | function, see "Mouse actions" 6 + left_mouse_command = "buffer %d", -- can be a string | function, see "Mouse actions" 7 + } 8 + }