From df8217c4b2f36099f3bf53e0e2d48f975cc2d34f Mon Sep 17 00:00:00 2001 From: Olivier Roques Date: Mon, 11 Jan 2021 09:44:50 +0100 Subject: [PATCH] Create highlights on VimEnter Also update README.md --- README.md | 4 ++++ lua/hardline.lua | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e54ff4d..e5c1300 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lua/hardline.lua b/lua/hardline.lua index d209c83..e33cee7 100644 --- a/lua/hardline.lua +++ b/lua/hardline.lua @@ -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