summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2020-09-05 21:15:40 -0500
committerStephan Seitz <stephan.lauf@yahoo.de>2020-09-06 15:51:10 +0200
commit97c1e60bd47ad8cfbff17f40cdeb0e873af3710d (patch)
tree70cf0084b70458d4191453a390df95a69f305ae6 /lua/nvim-treesitter
parent50de57711b0c7b4116f97dfcbb5a991d7974e7f4 (diff)
Text objects: check for query files first
The first function is faster and more common.
Diffstat (limited to 'lua/nvim-treesitter')
-rw-r--r--lua/nvim-treesitter/configs.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/configs.lua b/lua/nvim-treesitter/configs.lua
index c37dee04..a93fbb0e 100644
--- a/lua/nvim-treesitter/configs.lua
+++ b/lua/nvim-treesitter/configs.lua
@@ -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 = {},
},