checkhealth for all query groups

This commit is contained in:
Stephan Seitz 2020-07-15 00:38:09 +02:00 committed by Thomas Vigouroux
parent f5f5e3ec51
commit 31d1f068fd
3 changed files with 14 additions and 20 deletions

View file

@ -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)