treesitter fixes
This commit is contained in:
parent
479d22b666
commit
2b6426dde0
1 changed files with 26 additions and 26 deletions
|
@ -46,32 +46,32 @@ require("nvim-treesitter.configs").setup {
|
||||||
["[M"] = "@class.outer"
|
["[M"] = "@class.outer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
select = {
|
-- select = {
|
||||||
enable = true,
|
-- enable = true,
|
||||||
keymaps = {
|
-- keymaps = {
|
||||||
-- You can use the capture groups defined in textobjects.scm
|
-- -- You can use the capture groups defined in textobjects.scm
|
||||||
["af"] = "@function.outer",
|
-- ["af"] = "@function.outer",
|
||||||
["if"] = "@function.inner",
|
-- ["if"] = "@function.inner",
|
||||||
["ac"] = "@class.outer",
|
-- ["ac"] = "@class.outer",
|
||||||
["ic"] = "@class.inner",
|
-- ["ic"] = "@class.inner",
|
||||||
-- Or you can define your own textobjects like this
|
-- -- Or you can define your own textobjects like this
|
||||||
["iF"] = {
|
-- ["iF"] = {
|
||||||
python = "(function_definition) @function",
|
-- python = "(function_definition) @function",
|
||||||
cpp = "(function_definition) @function",
|
-- cpp = "(function_definition) @function",
|
||||||
c = "(function_definition) @function",
|
-- c = "(function_definition) @function",
|
||||||
java = "(method_declaration) @function"
|
-- java = "(method_declaration) @function"
|
||||||
}
|
-- }
|
||||||
}
|
-- }
|
||||||
},
|
-- },
|
||||||
swap = {
|
-- swap = {
|
||||||
enable = true,
|
-- enable = true,
|
||||||
swap_next = {
|
-- swap_next = {
|
||||||
["<leader>l"] = "@parameter.inner"
|
-- ["<leader>l"] = "@parameter.inner"
|
||||||
},
|
-- },
|
||||||
swap_previous = {
|
-- swap_previous = {
|
||||||
["<leader>h"] = "@parameter.inner"
|
-- ["<leader>h"] = "@parameter.inner"
|
||||||
}
|
-- }
|
||||||
}
|
-- }
|
||||||
},
|
},
|
||||||
--- nvim-ts-autotag ---
|
--- nvim-ts-autotag ---
|
||||||
autotag = {
|
autotag = {
|
||||||
|
|
Loading…
Reference in a new issue