mirror of
https://github.com/itchyny/lightline.vim.git
synced 2025-11-16 07:23:49 -05:00
Added hint regarding sourcing vimrc via autocmds
When sourcing the vimrc via autocmds in a certain way lightline and other statusline plugins break and stop displaying colors properly. This hint shows how to reload it without the "rendering" breaking.
This commit is contained in:
13
README.md
13
README.md
@@ -132,6 +132,19 @@ to your `.vimrc`.
|
||||
|
||||
If the colors of the statusline do not change from the default colors, move the settings of `g:lightline` before setting the colorscheme.
|
||||
|
||||
If you are reloading your `.vimrc` via `autocmd` and get this problem
|
||||
|
||||

|
||||
|
||||
when saving it you need to add the nested flag to your `autocmd` like so
|
||||
|
||||
```vim
|
||||
augroup reload_vimrc
|
||||
autocmd!
|
||||
autocmd bufwritepost $MYVIMRC nested source $MYVIMRC
|
||||
augroup END
|
||||
```
|
||||
|
||||
|
||||
Colors appear correctly? Now let's see how to change the appearance.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user