diff options
| author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-05-02 11:33:32 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-05-02 13:29:40 +0200 |
| commit | 39da51bbd12b8cda64226f905dba6556cc9d9b75 (patch) | |
| tree | f9e6cb3830f3e88a637205cedca11216c8deb70d /lua/nvim-treesitter/configs.lua | |
| parent | 34c0b0cccb48f3db61c6fb561bb31b43cbfb1893 (diff) | |
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.
Diffstat (limited to 'lua/nvim-treesitter/configs.lua')
| -rw-r--r-- | lua/nvim-treesitter/configs.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/configs.lua b/lua/nvim-treesitter/configs.lua index 9363c9e6..10dcc960 100644 --- a/lua/nvim-treesitter/configs.lua +++ b/lua/nvim-treesitter/configs.lua @@ -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 |
