bagrat / vim-buffet

IDE-like Vim tabline

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The number of truncated buffers cannot be displayed

hexid26 opened this issue · comments

Following the tutorial in the readme file, I config my vim. But my vim can not display the number of truncated buffers, buffet_left_trunc_icon, and buffet_right_trunc_icon. I don't know what I missed.

My vim looks like this.

image

The end is my vimrc. The font is MesloLGS Nerd Font.

I hope someone can tell why the number of truncated buffers cannot be displayed. Maybe I forgot to install some plugins.
Thanks.

if empty(glob('~/.vim/autoload/plug.vim'))
  silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
    \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif

set guifont=MesloLGS\ Nerd\ Font
set laststatus=2
set encoding=utf8
set t_Co=256
set number
set fillchars+=stl:\ ,stlnc:\
set term=xterm-256color
set termencoding=utf8
set hlsearch
" syntax enable

" Plugins will be downloaded under the specified directory.
call plug#begin('~/.vim/plugged')

" Declare the list of plugins.
Plug 'hzchirs/vim-material'
Plug 'ryanoasis/vim-devicons'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'scrooloose/nerdtree'
Plug 'bagrat/vim-buffet'

" List ends here. Plugins become visible to Vim after this call.
call plug#end()

" Config for vim-material
let g:material_style='oceanic'
set background=dark
colorscheme vim-material
" Config for vim-buffet 
let g:buffet_always_show_tabline = 1
" let g:buffet_separator = " | "
" let g:buffet_powerline_separators = 1
let g:buffet_show_index = 1
let g:buffet_new_buffer_name = "*"
let g:buffet_modified_icon = "+"
let g:buffet_tab_icon = "\uf00a"
let g:buffet_left_trunc_icon = "\uf0a8"
let g:buffet_right_trunc_icon = "\uf0a9"
nmap <leader>1 <Plug>BuffetSwitch(1)
nmap <leader>2 <Plug>BuffetSwitch(2)
nmap <leader>3 <Plug>BuffetSwitch(3)
nmap <leader>4 <Plug>BuffetSwitch(4)
nmap <leader>5 <Plug>BuffetSwitch(5)
nmap <leader>6 <Plug>BuffetSwitch(6)
nmap <leader>7 <Plug>BuffetSwitch(7)
nmap <leader>8 <Plug>BuffetSwitch(8)
nmap <leader>9 <Plug>BuffetSwitch(9)
nmap <leader>0 <Plug>BuffetSwitch(10)
noremap <Tab> :bn<CR>
noremap <S-Tab> :bp<CR>
noremap <Leader><Tab> :Bw<CR>
noremap <Leader><S-Tab> :Bw!<CR>
noremap <C-t> :enew<CR>

" Config for vim-nerdtree
autocmd StdinReadPre * let s:std_in=1
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | wincmd p | ene | exe 'NERDTree' argv()[0] | endif
autocmd BufEnter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
autocmd BufEnter * if bufname('#') =~# "^NERD_tree_" && winnr('$') > 1 | b# | endif
map <C-\> :NERDTreeToggle<CR>
let g:webdevicons_enable_nerdtree = 1
let g:webdevicons_conceal_nerdtree_brackets = 1
let g:NERDTreeShowHidden=1

" Config for vim-airline
let g:airline_powerline_fonts = 1
let g:airline_theme='dark'

" Config for vim-devicons

" let g:Powerline_symbols = 'fancy'

Hi @hexid26! Can you please open enough buffers that do not actually all fit into the tabline and share a screenshot of that along with the actual :ls result?

Sorry, @bagrat , I get the numbers when I open enough files. I get the screenshot here:
image
It works very well. Thank you very much.