chore(nvim): add treesitter textobject

This commit is contained in:
Rob Watson 2024-05-20 09:04:49 +02:00
parent c092b94b98
commit 9f03735f94
2 changed files with 4 additions and 1 deletions

View File

@ -40,10 +40,11 @@ require("nvim-treesitter.configs").setup({
["ak"] = "@keyed_element.outer",
["iv"] = "@keyed_element.inner",
["av"] = "@keyed_element.inner",
["at"] = "@composite_literal",
["ia"] = "@parameter.inner",
["aa"] = "@parameter.outer",
["ac"] = "@comment.outer",
["at"] = "@statement.outer",
["as"] = "@statement.outer",
["ar"] = "@return",
["af"] = "@function.outer",
["if"] = "@function.inner",

View File

@ -7,3 +7,5 @@
(keyed_element (_) . (_) @keyed_element.inner) @keyed_element.outer
(field_declaration type: (_) @keyed_element.inner) @keyed_element.outer
(parameter_declaration type: (_) @keyed_element.inner) @keyed_element.outer
(composite_literal (_)) @composite_literal