Skip to content

Commit

Permalink
fix: diff highlights doesn't reapply in colorscheme change (yetone#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
icristianhernandez authored Oct 22, 2024
1 parent 9de95f9 commit 3f947f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/avante/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 3f947f8

Please sign in to comment.