Locking version for nvim-treesitter since it dropped support for neovim 0.11
This commit is contained in:
parent
c65b95682c
commit
e163781833
|
|
@ -27,7 +27,6 @@
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "16812abf0e8d8175155f26143a8504e8253e92b0" },
|
"nvim-lspconfig": { "branch": "master", "commit": "16812abf0e8d8175155f26143a8504e8253e92b0" },
|
||||||
"nvim-notify": { "branch": "master", "commit": "8701bece920b38ea289b457f902e2ad184131a5d" },
|
"nvim-notify": { "branch": "master", "commit": "8701bece920b38ea289b457f902e2ad184131a5d" },
|
||||||
"nvim-treesitter": { "branch": "main", "commit": "7caec274fd19c12b55902a5b795100d21531391f" },
|
"nvim-treesitter": { "branch": "main", "commit": "7caec274fd19c12b55902a5b795100d21531391f" },
|
||||||
"nvim-treesitter-textobjects": { "branch": "main", "commit": "93d60a475f0b08a8eceb99255863977d3a25f310" },
|
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "8e1c0a389f20bf7f5b0dd0e00306c1247bda2595" },
|
"nvim-ts-autotag": { "branch": "main", "commit": "8e1c0a389f20bf7f5b0dd0e00306c1247bda2595" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "d7462543c9e366c0d196c7f67a945eaaf5d99414" },
|
"nvim-web-devicons": { "branch": "master", "commit": "d7462543c9e366c0d196c7f67a945eaaf5d99414" },
|
||||||
"oil.nvim": { "branch": "master", "commit": "0fcc83805ad11cf714a949c98c605ed717e0b83e" },
|
"oil.nvim": { "branch": "master", "commit": "0fcc83805ad11cf714a949c98c605ed717e0b83e" },
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@ return {
|
||||||
-- - sd' - [S]urround [D]elete [']quotes
|
-- - sd' - [S]urround [D]elete [']quotes
|
||||||
-- - sr)' - [S]urround [R]eplace [)] [']
|
-- - sr)' - [S]urround [R]eplace [)] [']
|
||||||
-- TODO: not sure if I need it, will disable for now
|
-- TODO: not sure if I need it, will disable for now
|
||||||
|
-- NOTE 's' keymap clashes with flash current keymaps
|
||||||
-- require('mini.surround').setup()
|
-- require('mini.surround').setup()
|
||||||
|
|
||||||
-- Simple and easy statusline.
|
-- Simple and easy statusline.
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,9 @@ return {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
-- pin to specific commit since newest version dropped support for neovom 0.11
|
||||||
|
commit = '7caec274fd19c12b55902a5b795100d21531391f',
|
||||||
|
pin = true,
|
||||||
-- main = 'nvim-treesitter.configs', -- Sets main module to use for opts
|
-- main = 'nvim-treesitter.configs', -- Sets main module to use for opts
|
||||||
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
|
|
@ -72,32 +75,33 @@ return {
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
-- TODO: not sure if i need it, removing for now
|
||||||
'nvim-treesitter/nvim-treesitter-textobjects',
|
-- {
|
||||||
opts = {},
|
-- 'nvim-treesitter/nvim-treesitter-textobjects',
|
||||||
branch = 'main',
|
-- opts = {},
|
||||||
config = function()
|
-- branch = 'main',
|
||||||
require('nvim-treesitter-textobjects').setup {
|
-- config = function()
|
||||||
textobjects = {
|
-- require('nvim-treesitter-textobjects').setup {
|
||||||
select = {
|
-- textobjects = {
|
||||||
enable = true,
|
-- select = {
|
||||||
-- Automatically jump forward to textobj, similar to targets.vim
|
-- enable = true,
|
||||||
lookahead = true,
|
-- -- Automatically jump forward to textobj, similar to targets.vim
|
||||||
keymaps = {
|
-- lookahead = true,
|
||||||
-- You can use the capture groups defined in textobjects.scm
|
-- keymaps = {
|
||||||
['af'] = { query = '@function.outer', desc = 'Select outer function region' },
|
-- -- You can use the capture groups defined in textobjects.scm
|
||||||
['if'] = { query = '@function.inner', desc = 'Select inner function region' },
|
-- ['af'] = { query = '@function.outer', desc = 'Select outer function region' },
|
||||||
['ac'] = { query = '@class.outer', desc = 'Select outer class region' },
|
-- ['if'] = { query = '@function.inner', desc = 'Select inner function region' },
|
||||||
-- You can optionally set descriptions to the mappings (used in the desc parameter of
|
-- ['ac'] = { query = '@class.outer', desc = 'Select outer class region' },
|
||||||
-- nvim_buf_set_keymap) which plugins like which-key display
|
-- -- You can optionally set descriptions to the mappings (used in the desc parameter of
|
||||||
['ic'] = { query = '@class.inner', desc = 'Select inner class region' },
|
-- -- nvim_buf_set_keymap) which plugins like which-key display
|
||||||
-- You can also use captures from other query groups like `locals.scm`
|
-- ['ic'] = { query = '@class.inner', desc = 'Select inner class region' },
|
||||||
['as'] = { query = '@local.scope', query_group = 'locals', desc = 'Select language scope' },
|
-- -- You can also use captures from other query groups like `locals.scm`
|
||||||
},
|
-- ['as'] = { query = '@local.scope', query_group = 'locals', desc = 'Select language scope' },
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
}
|
-- },
|
||||||
end,
|
-- }
|
||||||
},
|
-- end,
|
||||||
|
-- },
|
||||||
}
|
}
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue