diff --git a/lua/treesitter-matchup/internal.lua b/lua/treesitter-matchup/internal.lua index 3621dee..a396001 100644 --- a/lua/treesitter-matchup/internal.lua +++ b/lua/treesitter-matchup/internal.lua @@ -42,6 +42,7 @@ M.get_matches = ts_utils.memoize_by_buf_tick(function(bufnr) return end + local lang = lang_tree:lang() local group_results = queries.collect_group_results( bufnr, 'matchup', tree:root(), lang) or {} vim.list_extend(matches, group_results)