fix: diff highlights doesn't reapply in colorscheme change (#744)

This commit is contained in:
Cristian Hernandez 2024-10-21 22:42:02 -04:00 committed by GitHub
parent 9de95f9e02
commit 3f947f8deb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -304,6 +304,11 @@ H.autocmds = function()
callback = function() require("avante.highlights").setup() end,
})
api.nvim_create_autocmd("ColorScheme", {
group = H.augroup,
callback = function() require("avante.highlights").setup() end,
})
-- automatically setup Avante filetype to markdown
vim.treesitter.language.register("markdown", "Avante")