Use ts syn skip if available

This commit is contained in:
Andy K. Massimino
2021-09-27 21:03:51 -04:00
parent 0a93cee48d
commit 2ea566403c
3 changed files with 20 additions and 1 deletions

View File

@@ -23,6 +23,12 @@ function M.is_enabled(bufnr)
return configs.is_enabled('matchup', lang)
end
function M.is_hl_enabled(bufnr)
bufnr = bufnr or api.nvim_get_current_buf()
local lang = parsers.get_buf_lang(bufnr)
return configs.is_enabled('highlight', lang)
end
function M.get_matches(bufnr)
return queries.get_matches(bufnr, 'matchup')
end