diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2020-09-05 21:15:40 -0500 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2020-09-06 15:51:10 +0200 |
| commit | 97c1e60bd47ad8cfbff17f40cdeb0e873af3710d (patch) | |
| tree | 70cf0084b70458d4191453a390df95a69f305ae6 /lua/nvim-treesitter/configs.lua | |
| parent | 50de57711b0c7b4116f97dfcbb5a991d7974e7f4 (diff) | |
Text objects: check for query files first
The first function is faster and more common.
Diffstat (limited to 'lua/nvim-treesitter/configs.lua')
| -rw-r--r-- | lua/nvim-treesitter/configs.lua | 2 |
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 = {}, }, |
