Skip to content

Commit e163781

Browse files
committed
Locking version for nvim-treesitter since it dropped support for neovim 0.11
1 parent c65b956 commit e163781

3 files changed

Lines changed: 32 additions & 28 deletions

File tree

lazy-lock.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"nvim-lspconfig": { "branch": "master", "commit": "16812abf0e8d8175155f26143a8504e8253e92b0" },
2828
"nvim-notify": { "branch": "master", "commit": "8701bece920b38ea289b457f902e2ad184131a5d" },
2929
"nvim-treesitter": { "branch": "main", "commit": "7caec274fd19c12b55902a5b795100d21531391f" },
30-
"nvim-treesitter-textobjects": { "branch": "main", "commit": "93d60a475f0b08a8eceb99255863977d3a25f310" },
3130
"nvim-ts-autotag": { "branch": "main", "commit": "8e1c0a389f20bf7f5b0dd0e00306c1247bda2595" },
3231
"nvim-web-devicons": { "branch": "master", "commit": "d7462543c9e366c0d196c7f67a945eaaf5d99414" },
3332
"oil.nvim": { "branch": "master", "commit": "0fcc83805ad11cf714a949c98c605ed717e0b83e" },

lua/kickstart/plugins/mini.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ return {
1717
-- - sd' - [S]urround [D]elete [']quotes
1818
-- - sr)' - [S]urround [R]eplace [)] [']
1919
-- TODO: not sure if I need it, will disable for now
20+
-- NOTE 's' keymap clashes with flash current keymaps
2021
-- require('mini.surround').setup()
2122

2223
-- Simple and easy statusline.

lua/kickstart/plugins/treesitter.lua

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)