Lightline.vim: reload lightline's config without having to quit/launch (n)vim

Created on 11 Aug 2017  路  4Comments  路  Source: itchyny/lightline.vim

Hi!

First thanks for this amazing bar.

Having a question: is there a way to reload the lightline's config without having to quit/launch (n)vim ?

question

Most helpful comment

Calling the following three functions will reload the config.

  • lightline#init()
  • lightline#colorscheme()
  • lightline#update()

For example:

command! LightlineReload call LightlineReload()

function! LightlineReload()
  call lightline#init()
  call lightline#colorscheme()
  call lightline#update()
endfunction

All 4 comments

Calling the following three functions will reload the config.

  • lightline#init()
  • lightline#colorscheme()
  • lightline#update()

For example:

command! LightlineReload call LightlineReload()

function! LightlineReload()
  call lightline#init()
  call lightline#colorscheme()
  call lightline#update()
endfunction

Working, thanks!

Hi,

These functions does not seem to reload "line's theme". If i change the background setting and/or the colorscheme, and then call LightlineReload, it does update its colors.

Am i missing something?

@nikaro Refer to #424.

Was this page helpful?
0 / 5 - 0 ratings