chore(nvim): add treesitter textobject
This commit is contained in:
parent
c092b94b98
commit
9f03735f94
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue