chores: refine ui (#1663)

This commit is contained in:
yetone
2025-03-22 00:42:20 +08:00
committed by GitHub
parent a60a8d4701
commit 86b63b2a33
4 changed files with 127 additions and 15 deletions

View File

@@ -243,14 +243,20 @@ function H.autocmds()
if Config.hints.enabled then M.current.selection:setup_autocmds() end
end)
local function setup_colors()
require("avante.highlights").setup()
-- local sidebar = require("avante").get()
-- if sidebar then sidebar:setup_colors() end
end
api.nvim_create_autocmd("ColorSchemePre", {
group = H.augroup,
callback = function() require("avante.highlights").setup() end,
callback = setup_colors,
})
api.nvim_create_autocmd("ColorScheme", {
group = H.augroup,
callback = function() require("avante.highlights").setup() end,
callback = setup_colors,
})
-- automatically setup Avante filetype to markdown