This commit is contained in:
2025-05-31 13:19:04 +02:00
parent 3d18acab7e
commit 3eb12e968b
2 changed files with 27 additions and 9 deletions
+9 -5
View File
@@ -25,6 +25,14 @@ return {
-- You can use the capture groups defined in textobjects.scm
["af"] = "@function.outer",
["if"] = "@function.inner",
["ai"] = "@conditional.outer",
["ii"] = "@conditional.inner",
["ao"] = "@block.outer",
["io"] = "@block.inner",
["aO"] = "@object.outer",
["iO"] = "@object.inner",
["aa"] = "@array.outer",
["ia"] = "@array.inner",
},
-- You can choose the select mode (default is charwise 'v')
--
@@ -33,11 +41,7 @@ return {
-- * method: eg 'v' or 'o'
-- and should return the mode ('v', 'V', or '<c-v>') or a table
-- mapping query_strings to modes.
selection_modes = {
["@parameter.outer"] = "v", -- charwise
["@function.outer"] = "v",
["@class.outer"] = "<c-v>", -- blockwise
},
selection_modes = {},
-- If you set this to `true` (default is `false`) then any textobject is
-- extended to include preceding or succeeding whitespace. Succeeding
-- whitespace has priority in order to act similarly to eg the built-in