Text objects: check for query files first

The first function is faster and more common.
This commit is contained in:
Santos Gallegos 2020-09-05 21:15:40 -05:00 committed by Stephan Seitz
parent 50de57711b
commit 97c1e60bd4

View file

@ -87,7 +87,7 @@ local builtin_modules = {
enable = false,
disable = {},
is_supported = function(lang)
return has_some_textobject_mapping(lang) or queries.has_textobjects(lang)
return queries.has_textobjects(lang) or has_some_textobject_mapping(lang)
end,
keymaps = {},
},