plugins.treesitter-textobjects.select.enable

Text object selection:

Define your own text objects mappings similar to ip (inner paragraph) and ap (a paragraph).

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.treesitter-textobjects.select.disable

List of languages to disable this module for.

Plugin default: []

Type: null or (list of string)

Default: null

Declared by:

plugins.treesitter-textobjects.select.includeSurroundingWhitespace

true or false, when true textobjects are extended to include preceding or succeeding whitespace.

Can also be a function which gets passed a table with the keys query_string (@function.inner) and selection_mode (v) and returns true of false.

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 ap.

Plugin default: false

Type: null or lua function string or boolean

Default: null

Declared by:

plugins.treesitter-textobjects.select.keymaps

Map of keymaps to a tree-sitter query ((function_definition) @function) or capture group (@function.inner).

Plugin default: {}

Type: null or (attribute set of (string or (submodule)))

Default: null

Declared by:

plugins.treesitter-textobjects.select.lookahead

Whether or not to look ahead for the textobject.

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.treesitter-textobjects.select.selectionModes

Map of capture group to v(charwise), V(linewise), or <c-v>(blockwise), choose a selection mode per capture, default is v(charwise).

Plugin default: {}

Type: null or (attribute set of (one of “v”, “V”, “<c-v>”))

Default: null

Declared by: