From a54a5a83f956252e2ed511311aef2d31648e34d9 Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Mon, 20 Jun 2022 15:59:51 +0200 Subject: [PATCH] bufferline.nvim --- vim/.vimrc | 6 ++++++ vim/config/keybindings.vim | 4 ++++ vim/config/pluginconfig.vim | 12 +++++++++++- vim/config/plugins.vim | 4 ++++ 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/vim/.vimrc b/vim/.vimrc index 863c8d4..cbdaeb5 100755 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -23,6 +23,12 @@ set encoding=utf-8 set foldmethod=syntax +if exists('+termguicolors') + let &t_8f = "\[38;2;%lu;%lu;%lum" + let &t_8b = "\[48;2;%lu;%lu;%lum" + set termguicolors +endif + " Use whitespace instead of tab set expandtab diff --git a/vim/config/keybindings.vim b/vim/config/keybindings.vim index 597e4cb..da27029 100644 --- a/vim/config/keybindings.vim +++ b/vim/config/keybindings.vim @@ -20,6 +20,10 @@ nmap :Buffers imap :Buffers vmap :Buffers +" Bufferline.nvim +nnoremap [b :BufferLineCyclePrev +nnoremap ]b :BufferLineCycleNext + " Nerdtree nmap :NERDTreeToggle diff --git a/vim/config/pluginconfig.vim b/vim/config/pluginconfig.vim index 4431bcc..0d14d71 100644 --- a/vim/config/pluginconfig.vim +++ b/vim/config/pluginconfig.vim @@ -12,11 +12,21 @@ let g:airline_symbols.linenr = '' let g:airline#extensions#tabline#left_sep='' let g:airline#extensions#tabline#left_alt_sep='' let g:airline_symbols.maxlinenr = '' -let g:airline#extensions#tabline#enabled = 1 +let g:airline#extensions#tabline#enabled = 0 let g:airline#extensions#wordcount#enabled = 1 let g:airline_theme="minimalist" +" bufferline.nvim +set termguicolors +lua << EOF +require("bufferline").setup { + options = { + diagnostics = "coc", + } +} +EOF + " GitGutter autocmd TextChanged * GitGutter diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index f388838..135c31d 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -83,6 +83,8 @@ Plug 'hashivim/vim-terraform' " KIT-Color-Scheme Plug 'taDachs/kit.vim', {'commit': 'dae7c4a0ce37e8ffc4bd1dfcc68f8ea01d572e9e'} +Plug 'altercation/vim-colors-solarized' + " Git integration Plug 'airblade/vim-gitgutter' @@ -99,4 +101,6 @@ Plug 'rad4day/vim-ripgrep' Plug 'github/copilot.vim' +Plug 'akinsho/bufferline.nvim', { 'tag': 'v2.2.1' } + call plug#end()