plugins.treesitter-textobjects.select.enable

Text object selection:

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

Type: null or boolean or raw lua code

Default: null

Plugin default: false

Declared by:

plugins.treesitter-textobjects.select.disable

List of languages to disable this module for.

Type: null or (list of string)

Default: null

Plugin default: []

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.

Type: null or lua function string or boolean

Default: null

Plugin default: false

Declared by:

plugins.treesitter-textobjects.select.keymaps

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

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

Default: null

Plugin default: {}

Declared by:

plugins.treesitter-textobjects.select.lookahead

Whether or not to look ahead for the textobject.

Type: null or boolean or raw lua code

Default: null

Plugin default: false

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

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

Default: null

Plugin default: {}

Declared by: