mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
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:
parent
34c0b0cccb
commit
39da51bbd1
2 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue