You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
861 B
Lua
51 lines
861 B
Lua
require('nvim-treesitter.configs').setup({
|
|
ensure_installed = {
|
|
'bash',
|
|
'comment',
|
|
'css',
|
|
'gitignore',
|
|
'glimmer',
|
|
'html',
|
|
'javascript',
|
|
'json',
|
|
'json5',
|
|
'jsonc',
|
|
'lua',
|
|
'markdown',
|
|
'php',
|
|
'python',
|
|
'regex',
|
|
'ruby',
|
|
'scss',
|
|
'sql',
|
|
'toml',
|
|
'tsx',
|
|
'typescript',
|
|
'vim',
|
|
'vue',
|
|
'yaml',
|
|
},
|
|
highlight = {
|
|
enable = true,
|
|
},
|
|
indent = {
|
|
enable = true,
|
|
},
|
|
textobjects = {
|
|
select = {
|
|
enable = true,
|
|
lookahead = true,
|
|
keymaps = {
|
|
['ab'] = '@block.outer',
|
|
['ib'] = '@block.inner',
|
|
['af'] = '@function.outer',
|
|
['if'] = '@function.inner',
|
|
['ac'] = '@call.outer',
|
|
['ic'] = '@call.inner',
|
|
['ai'] = '@conditional.outer',
|
|
['ii'] = '@conditional.inner',
|
|
},
|
|
},
|
|
},
|
|
})
|