mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-17 09:02:11 +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',
|
||||
dependencies = { 'nvim-treesitter/nvim-treesitter-textobjects' },
|
||||
config = function()
|
||||
require('nvim-treesitter.configs').setup({
|
||||
auto_install = true,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
textobjects = {
|
||||
require('nvim-treesitter-textobjects').setup({
|
||||
select = {
|
||||
enable = true,
|
||||
lookahead = true,
|
||||
|
|
@ -54,7 +50,6 @@ return {
|
|||
swap_next = { ['<leader>sn'] = '@parameter.inner' },
|
||||
swap_previous = { ['<leader>sp'] = '@parameter.inner' },
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue