From b041c5e8a5281b3cef00c80539b426f726a26272 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Fri, 23 Apr 2021 17:17:52 +0200 Subject: [PATCH] fix: apply sidebar stuff on FileType instead of BufWinEnter --- README.md | 4 ++-- lua/tokyonight/theme.lua | 2 +- lua/tokyonight/util.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 752b10a..0776737 100644 --- a/README.md +++ b/README.md @@ -107,14 +107,14 @@ The theme comes in two styles, `storm` and a darker variant `night`. -- Example config in Lua vim.g.tokyonight_style = "night" vim.g.tokyonight_italic_functions = true -vim.g.tokyonight_sidebars = { "quickfix", "__vista__", "terminal" } +vim.g.tokyonight_sidebars = { "qf", "vista_kind", "terminal", "packer" } ``` ```vim " Example config in VimScript let g:tokyonight_style = "night" let g:tokyonight_italic_functions = true -let g:tokyonight_sidebars = [ "quickfix", "__vista__", "terminal" ] +let g:tokyonight_sidebars = [ "qf", "vista_kind", "terminal", "packer" ] ``` ## 🍭 Extras diff --git a/lua/tokyonight/theme.lua b/lua/tokyonight/theme.lua index 33405c9..be12a3a 100644 --- a/lua/tokyonight/theme.lua +++ b/lua/tokyonight/theme.lua @@ -277,7 +277,7 @@ function M.setup(config) NvimTreeRootFolder = { fg = c.blue, style = "bold" }, NvimTreeGitDirty = { fg = c.git.change }, NvimTreeGitNew = { fg = c.git.add }, - NvimTreeSpecialFile = { fg = c.purple }, + NvimTreeSpecialFile = { fg = c.purple, style = "underline" }, LspDiagnosticsError = { fg = c.error }, LspDiagnosticsWarning = { fg = c.warning }, LspDiagnosticsInformation = { fg = c.info }, diff --git a/lua/tokyonight/util.lua b/lua/tokyonight/util.lua index f3c1c33..0ec093c 100644 --- a/lua/tokyonight/util.lua +++ b/lua/tokyonight/util.lua @@ -90,7 +90,7 @@ function util.autocmds(config) if sidebar == "terminal" then vim.cmd [[ autocmd TermOpen * setlocal winhighlight=Normal:NormalSB,SignColumn:SignColumnSB]] else - vim.cmd([[ autocmd BufWinEnter ]] .. sidebar .. + vim.cmd([[ autocmd FileType ]] .. sidebar .. [[ setlocal winhighlight=Normal:NormalSB,SignColumn:SignColumnSB]]) end end