fix: previewer if custom_captures are set (#2156)

This commit is contained in:
Simon Hauser
2022-09-04 21:06:34 +02:00
committed by GitHub
parent 49b043e2a3
commit 19047b6b3c

View File

@@ -126,9 +126,6 @@ local treesitter_attach = function(bufnr, ft)
end end
local config = ts_configs.get_module "highlight" local config = ts_configs.get_module "highlight"
for k, v in pairs(config.custom_captures) do
vim.treesitter.highlighter.hl_map[k] = v
end
vim.treesitter.highlighter.new(ts_parsers.get_parser(bufnr, lang)) vim.treesitter.highlighter.new(ts_parsers.get_parser(bufnr, lang))
local is_table = type(config.additional_vim_regex_highlighting) == "table" local is_table = type(config.additional_vim_regex_highlighting) == "table"
if if