Create highlights on VimEnter

Also update README.md
This commit is contained in:
Olivier Roques
2021-01-11 09:44:50 +01:00
parent 7a701bec8e
commit df8217c4b2
2 changed files with 5 additions and 1 deletions

View File

@@ -4,6 +4,10 @@ A statusline / bufferline for Neovim written in Lua. It is inspired by
[vim-airline](https://github.com/vim-airline/vim-airline) but aims to
be as light and simple as possible.
_**Note**: this plugin is mainly for my own use. I won't add new
features/parts/themes if I don't need them. Feel free to submit PRs or fork the
plugin though._
![screenshot](./screenshot.png)
## Installation

View File

@@ -72,7 +72,7 @@ local function set_hlgroups()
table.insert(a, string.format('%s=%s', k, v))
end
a = table.concat(a, ' ')
cmd(string.format('autocmd ColorScheme * hi %s %s', hlgroup, a))
cmd(string.format('autocmd VimEnter,ColorScheme * hi %s %s', hlgroup, a))
end
end
end