Skip to content

Commit

Permalink
fix auto_highlight = "all"
Browse files Browse the repository at this point in the history
  • Loading branch information
glindstedt committed Apr 3, 2024
1 parent a48f09c commit f4853a3
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 f4853a3

Please sign in to comment.