mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 21:10:15 -04:00
checkhealth for all query groups
This commit is contained in:
parent
f5f5e3ec51
commit
31d1f068fd
3 changed files with 14 additions and 20 deletions
|
|
@ -34,9 +34,11 @@ M.query_extensions = {
|
|||
tsx = {'javascript.jsx'}
|
||||
}
|
||||
|
||||
M.has_locals = get_query_guard('locals')
|
||||
M.has_textobjects = get_query_guard('textobjects')
|
||||
M.has_highlights = get_query_guard('highlights')
|
||||
M.built_in_query_groups = {'highlights', 'locals', 'textobjects'}
|
||||
|
||||
for _, query in ipairs(M.built_in_query_groups) do
|
||||
M["has_" .. query] = get_query_guard(query)
|
||||
end
|
||||
|
||||
function M.get_query(lang, query_name)
|
||||
local query_files = api.nvim_get_runtime_file(string.format('queries/%s/%s.scm', lang, query_name), true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue