fix(highlight): ensure link captures function exists

before attempting to call it
fixes #3465
This commit is contained in:
Akin Sowemimo 2022-09-09 15:22:04 +01:00 committed by Christian Clason
parent e37e0c9b14
commit 557123a616

View file

@ -131,10 +131,12 @@ elseif not vim.g.skip_ts_default_groups then
end end
local function link_all_captures() local function link_all_captures()
if link_captures then
for capture, hlgroup in pairs(default_map) do for capture, hlgroup in pairs(default_map) do
link_captures(capture, hlgroup) link_captures(capture, hlgroup)
end end
end end
end
link_all_captures() link_all_captures()