mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -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,
|
enable = false,
|
||||||
disable = {},
|
disable = {},
|
||||||
is_supported = function(lang)
|
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,
|
end,
|
||||||
keymaps = {},
|
keymaps = {},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue