refactor(textobj): use configs and don't use VimL

This commit is contained in:
Thomas Vigouroux 2020-04-25 16:35:10 +02:00
parent 7c7d4e5270
commit cadb3ee1ff
4 changed files with 78 additions and 62 deletions

View file

@ -157,12 +157,15 @@ local config = {
return queries.get_query(ft, 'highlights') ~= nil
end
},
-- selection = {
-- enable = false,
-- disable = {},
-- keymaps = {},
-- is_supported = function() return false end
-- },
textobj = {
enable = false,
disable = {},
keymaps = {
node_incremental="grn",
scope_incremental="grc"
},
is_supported = function() return true end
},
-- folding = {
-- enable = false,
-- disable = {},