diff options
| author | Kiyan Yazdani <yazdani.kiyan@protonmail.com> | 2020-04-25 23:33:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-25 23:33:13 +0200 |
| commit | f8b39e1d3ad36c2e5d6eb6f51983275ecc9145f0 (patch) | |
| tree | 6ff340a7c1e243e111bd0e593444eaeca7236741 /lua/nvim-treesitter/configs.lua | |
| parent | 2ca0c348f73655b395ded2e60e13ba0c2249dc74 (diff) | |
| parent | bb709aa8d0e241232b31ca1ae9fc042b16413ffd (diff) | |
Merge pull request #23 from vigoux/feature/textobjects
Node and scope text objects
Diffstat (limited to 'lua/nvim-treesitter/configs.lua')
| -rw-r--r-- | lua/nvim-treesitter/configs.lua | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lua/nvim-treesitter/configs.lua b/lua/nvim-treesitter/configs.lua index 64d4170e..2761f0be 100644 --- a/lua/nvim-treesitter/configs.lua +++ b/lua/nvim-treesitter/configs.lua @@ -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 = {}, |
