lightline.vim doesn't show g:lightline.active.right in vim 8.2.150

Created on 27 Jan 2020  路  4Comments  路  Source: itchyny/lightline.vim

It's wired that after I upgrade my vim to 8.2.150, the right parts of status line (g:lightline.active.right) simplify disappeared:

Screenshot 2020-01-27 at 6 18 00 PM

Normally it seems like this (with same .vimrc):

1

My config:

" lightline
let g:lightline = {
  \ 'colorscheme': 'equinusocio_material',
  \ 'separator': { 'left': '', 'right': '' },
  \ 'subseparator': { 'left': '', 'right': '' },
  \ }
let g:lightline.tabline = {
  \ 'left': [ [ 'buffers' ] ],
  \ 'right': [ [ 'close' ] ],
  \ }
let g:lightline.component_expand = { 'buffers': 'lightline#bufferline#buffers' }
let g:lightline.component_type   = { 'buffers': 'tabsel' }
let g:lightline#bufferline#number_map = {
  \ '0': ' 0 ',
  \ '1': ' 1 ',
  \ '2': ' 2 ',
  \ '3': ' 3 ',
  \ '4': ' 4 ',
  \ '5': ' 5 ',
  \ '6': ' 6 ',
  \ '7': ' 7 ',
  \ '8': ' 8 ',
  \ '9': ' 9 ',
  \ }
let g:lightline#bufferline#show_number = 2
let g:lightline#bufferline#shorten_path = 0
let g:lightline#bufferline#unnamed = '[No Name]'
nmap <Leader>1 <Plug>lightline#bufferline#go(1)
nmap <Leader>2 <Plug>lightline#bufferline#go(2)
nmap <Leader>3 <Plug>lightline#bufferline#go(3)
nmap <Leader>4 <Plug>lightline#bufferline#go(4)
nmap <Leader>5 <Plug>lightline#bufferline#go(5)
nmap <Leader>6 <Plug>lightline#bufferline#go(6)
nmap <Leader>7 <Plug>lightline#bufferline#go(7)
nmap <Leader>8 <Plug>lightline#bufferline#go(8)
nmap <Leader>9 <Plug>lightline#bufferline#go(9)
nmap <Leader>0 <Plug>lightline#bufferline#go(10)
question

All 4 comments

Vim 8.2.150 has serious problem around range() function (https://github.com/vim/vim/issues/5541). Please wait for fix in Vim.

Thanks for looking into this so quickly ~ I will close this issue.

@chuling I also fixed in this plugin so please update lightline.

@itchyny Amazing! Thanks! :wink:

Was this page helpful?
0 / 5 - 0 ratings