@@ -12,6 +12,9 @@ return {
1212 enable = true ,
1313 },
1414 },
15+ -- pin to specific commit since newest version dropped support for neovom 0.11
16+ commit = ' 7caec274fd19c12b55902a5b795100d21531391f' ,
17+ pin = true ,
1518 -- main = 'nvim-treesitter.configs', -- Sets main module to use for opts
1619 -- [[ Configure Treesitter ]] See `:help nvim-treesitter`
1720 config = function (_ , opts )
@@ -72,32 +75,33 @@ return {
7275 end
7376 end ,
7477 },
75- {
76- ' nvim-treesitter/nvim-treesitter-textobjects' ,
77- opts = {},
78- branch = ' main' ,
79- config = function ()
80- require (' nvim-treesitter-textobjects' ).setup {
81- textobjects = {
82- select = {
83- enable = true ,
84- -- Automatically jump forward to textobj, similar to targets.vim
85- lookahead = true ,
86- keymaps = {
87- -- You can use the capture groups defined in textobjects.scm
88- [' af' ] = { query = ' @function.outer' , desc = ' Select outer function region' },
89- [' if' ] = { query = ' @function.inner' , desc = ' Select inner function region' },
90- [' ac' ] = { query = ' @class.outer' , desc = ' Select outer class region' },
91- -- You can optionally set descriptions to the mappings (used in the desc parameter of
92- -- nvim_buf_set_keymap) which plugins like which-key display
93- [' ic' ] = { query = ' @class.inner' , desc = ' Select inner class region' },
94- -- You can also use captures from other query groups like `locals.scm`
95- [' as' ] = { query = ' @local.scope' , query_group = ' locals' , desc = ' Select language scope' },
96- },
97- },
98- },
99- }
100- end ,
101- },
78+ -- TODO: not sure if i need it, removing for now
79+ -- {
80+ -- 'nvim-treesitter/nvim-treesitter-textobjects',
81+ -- opts = {},
82+ -- branch = 'main',
83+ -- config = function()
84+ -- require('nvim-treesitter-textobjects').setup {
85+ -- textobjects = {
86+ -- select = {
87+ -- enable = true,
88+ -- -- Automatically jump forward to textobj, similar to targets.vim
89+ -- lookahead = true,
90+ -- keymaps = {
91+ -- -- You can use the capture groups defined in textobjects.scm
92+ -- ['af'] = { query = '@function.outer', desc = 'Select outer function region' },
93+ -- ['if'] = { query = '@function.inner', desc = 'Select inner function region' },
94+ -- ['ac'] = { query = '@class.outer', desc = 'Select outer class region' },
95+ -- -- You can optionally set descriptions to the mappings (used in the desc parameter of
96+ -- -- nvim_buf_set_keymap) which plugins like which-key display
97+ -- ['ic'] = { query = '@class.inner', desc = 'Select inner class region' },
98+ -- -- You can also use captures from other query groups like `locals.scm`
99+ -- ['as'] = { query = '@local.scope', query_group = 'locals', desc = 'Select language scope' },
100+ -- },
101+ -- },
102+ -- },
103+ -- }
104+ -- end,
105+ -- },
102106}
103107-- vim: ts=2 sts=2 sw=2 et
0 commit comments