mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
apply bfredl suggestion
This commit is contained in:
parent
981f3f17a0
commit
7e0c4e5329
@ -99,11 +99,7 @@ function TSHighlighter:get_hl_from_capture(capture)
|
|||||||
else
|
else
|
||||||
-- Default to false to avoid recomputing
|
-- Default to false to avoid recomputing
|
||||||
local hl = TSHighlighter.hl_map[name]
|
local hl = TSHighlighter.hl_map[name]
|
||||||
if hl then
|
return hl and a.nvim_get_hl_id_by_name(hl) or 0
|
||||||
return a.nvim_get_hl_id_by_name(hl)
|
|
||||||
else
|
|
||||||
return 0
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user