mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-17 03:03:47 +00:00
update treesitter config for v1.x API (configs module removed)
This commit is contained in:
parent
e30404a7e1
commit
f3d61787f0
1 changed files with 42 additions and 47 deletions
|
|
@ -4,11 +4,7 @@ return {
|
||||||
build = ':TSUpdate',
|
build = ':TSUpdate',
|
||||||
dependencies = { 'nvim-treesitter/nvim-treesitter-textobjects' },
|
dependencies = { 'nvim-treesitter/nvim-treesitter-textobjects' },
|
||||||
config = function()
|
config = function()
|
||||||
require('nvim-treesitter.configs').setup({
|
require('nvim-treesitter-textobjects').setup({
|
||||||
auto_install = true,
|
|
||||||
highlight = { enable = true },
|
|
||||||
indent = { enable = true },
|
|
||||||
textobjects = {
|
|
||||||
select = {
|
select = {
|
||||||
enable = true,
|
enable = true,
|
||||||
lookahead = true,
|
lookahead = true,
|
||||||
|
|
@ -54,7 +50,6 @@ return {
|
||||||
swap_next = { ['<leader>sn'] = '@parameter.inner' },
|
swap_next = { ['<leader>sn'] = '@parameter.inner' },
|
||||||
swap_previous = { ['<leader>sp'] = '@parameter.inner' },
|
swap_previous = { ['<leader>sp'] = '@parameter.inner' },
|
||||||
},
|
},
|
||||||
},
|
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue