mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
Text objects: check for query files first
The first function is faster and more common.
This commit is contained in:
parent
50de57711b
commit
97c1e60bd4
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = {},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue