From f4853a3ca5611c8029fd9b0f05f958ab19f8f8d8 Mon Sep 17 00:00:00 2001 From: Gustaf Lindstedt Date: Wed, 3 Apr 2024 22:50:10 +0200 Subject: [PATCH] fix auto_highlight = "all" --- lua/rocks_treesitter/highlight.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/rocks_treesitter/highlight.lua b/lua/rocks_treesitter/highlight.lua index bafdba6..ee34dc1 100644 --- a/lua/rocks_treesitter/highlight.lua +++ b/lua/rocks_treesitter/highlight.lua @@ -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,