You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to disable the close buttons using g:bufferline.closable but I'm getting the error E121: Undefined variable: g:bufferline when Neovim launches. What am I doing wrong? The following is my minimal config:
callplug#begin('~/.vim/bundle')
Plug 'kyazdani42/nvim-web-devicons'" Required by barbar.nvim
Plug 'romgrk/lib.kom'" Required by barbar.nvim
Plug 'romgrk/barbar.nvim'" Sexiest buffer tablinecallplug#end()
letg:bufferline.closable =v:false
The text was updated successfully, but these errors were encountered:
Barbar hasn't run yet so it's not defined yet. You can define it yourself with let bufferline = { 'closable': v:false }, barbar will respect that setting because he's polite. Oh and also the latest version of barbar doesn't depend anymore on lib.kom so you can delete the line.
Oh of course! I figured doing let g:bufferline = { 'closable': v:false } would remove all other default settings in bufferline but I see now that barbar.nvim is smarter than that. Thanks!
I tried to disable the close buttons using
g:bufferline.closable
but I'm getting the errorE121: Undefined variable: g:bufferline
when Neovim launches. What am I doing wrong? The following is my minimal config:The text was updated successfully, but these errors were encountered: