mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
fix(highlight): ensure link captures function exists
before attempting to call it fixes #3465
This commit is contained in:
parent
e37e0c9b14
commit
557123a616
1 changed files with 4 additions and 2 deletions
|
|
@ -131,8 +131,10 @@ elseif not vim.g.skip_ts_default_groups then
|
||||||
end
|
end
|
||||||
|
|
||||||
local function link_all_captures()
|
local function link_all_captures()
|
||||||
for capture, hlgroup in pairs(default_map) do
|
if link_captures then
|
||||||
link_captures(capture, hlgroup)
|
for capture, hlgroup in pairs(default_map) do
|
||||||
|
link_captures(capture, hlgroup)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue