diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-09-20 23:20:37 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2020-10-04 14:20:20 +0200 |
| commit | 3362f4519671da29b437c48a7c54bec8550a4f9d (patch) | |
| tree | d43fa3815b25e4a9178b4d15bfa134d4c13839b6 /lua/nvim-treesitter/configs.lua | |
| parent | 7f325538cca8682d931a944fbf74b35408022232 (diff) | |
Remove textobjects module
Diffstat (limited to 'lua/nvim-treesitter/configs.lua')
| -rw-r--r-- | lua/nvim-treesitter/configs.lua | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/lua/nvim-treesitter/configs.lua b/lua/nvim-treesitter/configs.lua index f12d4fdf..0842f276 100644 --- a/lua/nvim-treesitter/configs.lua +++ b/lua/nvim-treesitter/configs.lua @@ -7,17 +7,6 @@ local caching = require'nvim-treesitter.caching' local M = {} -local function has_some_textobject_mapping(lang) - for _, v in pairs(M.get_module('textobjects.select').keymaps) do - if type(v) == 'table' then - if v[lang] then - return true - end - end - end - return false -end - local config = { modules = {}, ensure_installed = {}, @@ -47,35 +36,6 @@ local builtin_modules = { }, is_supported = queries.has_locals }, - textobjects = { - select = { - module_path = 'nvim-treesitter.textobjects.select', - enable = false, - disable = {}, - is_supported = function(lang) - return queries.has_textobjects(lang) or has_some_textobject_mapping(lang) - end, - keymaps = {}, - }, - move = { - module_path = 'nvim-treesitter.textobjects.move', - enable = false, - disable = {}, - is_supported = queries.has_textobjects, - goto_next_start = {}, - goto_next_end = {}, - goto_previous_start = {}, - goto_previous_end = {}, - }, - swap = { - module_path = 'nvim-treesitter.textobjects.swap', - enable = false, - disable = {}, - is_supported = queries.has_textobjects, - swap_next = {}, - swap_previous = {}, - }, - } } local attached_buffers_by_module = caching.create_buffer_cache() |
