More treesitter extensions

This commit is contained in:
2022-07-04 23:22:12 +01:00
parent 878d7869d7
commit df7e3734e0
2 changed files with 27 additions and 4 deletions

View File

@@ -44,11 +44,29 @@ require("nvim-treesitter.configs").setup({
enable = true,
disable = {},
},
indent = {
indent = { enable = true },
incremental_selection = {
enable = true,
keymaps = {
init_selection = "gnn",
node_incremental = "grn",
scope_incremental = "grc",
node_decremental = "grm",
},
},
context_commentstring = {
enable = true,
-- Extensions
autotag = { enable = true },
context_commentstring = { enable = true },
matchup = { enable = true },
rainbow = { enable = true },
textobjects = {
select = {
enable = true,
keymaps = {
["af"] = "@function.outer",
["if"] = "@function.inner",
},
},
},
})