fix: apply sidebar stuff on FileType instead of BufWinEnter
This commit is contained in:
@@ -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 },
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user