diff options
author | Josh Rahm <rahm@google.com> | 2024-03-06 02:54:59 +0000 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2024-03-06 02:54:59 +0000 |
commit | 95c7379b8a0e64cbf60e57819204fc9027fffb5b (patch) | |
tree | 9bba56aa47b5b919b1a58728f68bf3babdc7b760 /lua/treesitter-textobjects-setup.lua | |
parent | 18b020444dc9f45f879d25e999a833e766706024 (diff) | |
download | config.vim-95c7379b8a0e64cbf60e57819204fc9027fffb5b.tar.gz config.vim-95c7379b8a0e64cbf60e57819204fc9027fffb5b.tar.bz2 config.vim-95c7379b8a0e64cbf60e57819204fc9027fffb5b.zip |
added more textobjects
Diffstat (limited to 'lua/treesitter-textobjects-setup.lua')
-rw-r--r-- | lua/treesitter-textobjects-setup.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/treesitter-textobjects-setup.lua b/lua/treesitter-textobjects-setup.lua index 1c5cf84..f58e5bd 100644 --- a/lua/treesitter-textobjects-setup.lua +++ b/lua/treesitter-textobjects-setup.lua @@ -15,6 +15,8 @@ require'nvim-treesitter.configs'.setup { ["ac"] = "@class.outer", ["aa"] = "@parameter.outer", ["ia"] = "@parameter.inner", + ["iq"] = "@block.inner", + ["aq"] = "@block.outer", -- You can optionally set descriptions to the mappings (used in the desc parameter of -- nvim_buf_set_keymap) which plugins like which-key display ["ic"] = { query = "@class.inner", desc = "Select inner part of a class region" }, |