modules: move textobj to incremental_selection

As suggested in #37, rename the textobj module to incremental_selection.
Also adds a utility function to get the config of a module.
This commit is contained in:
Thomas Vigouroux 2020-05-02 11:33:32 +02:00
parent 34c0b0cccb
commit 39da51bbd1
2 changed files with 8 additions and 4 deletions

View file

@ -214,7 +214,7 @@ local config = {
return queries.get_query(ft, 'highlights') ~= nil
end
},
textobj = {
incremental_selection = {
enable = false,
disable = {},
keymaps = {
@ -403,4 +403,8 @@ function M.available_modules()
return vim.tbl_keys(config.modules)
end
function M.get_module(mod)
return config.modules[mod]
end
return M