Skip to content

Commit

Permalink
Merge pull request #2 from glindstedt/gl/fix-auto-highlight-all
Browse files Browse the repository at this point in the history
fix: highlighting for `auto_highlight = "all"`
  • Loading branch information
mrcjkb authored Apr 3, 2024
2 parents a48f09c + f4853a3 commit b246db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rocks_treesitter/highlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function highlight.create_autocmd()
local bufnr = ctx.buf
local filetype = vim.bo[bufnr].filetype
local lang = get_lang(filetype)
if config.auto_highlight[lang] then
if config.auto_highlight == "all" or config.auto_highlight[lang] then
do_highlight(lang)
end
end,
Expand Down

0 comments on commit b246db6

Please sign in to comment.