fix: apply sidebar stuff on FileType instead of BufWinEnter

This commit is contained in:
Folke Lemaitre
2021-04-23 17:17:52 +02:00
parent cb54f41063
commit b041c5e8a5
3 changed files with 4 additions and 4 deletions

View File

@@ -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 },

View File

@@ -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