mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 12:06:55 -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
|
||||
|
||||
local function link_all_captures()
|
||||
for capture, hlgroup in pairs(default_map) do
|
||||
link_captures(capture, hlgroup)
|
||||
if link_captures then
|
||||
for capture, hlgroup in pairs(default_map) do
|
||||
link_captures(capture, hlgroup)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue