Skip to content

wrapscan support #863

@Kaiser-Yang

Description

@Kaiser-Yang

Is your feature request related to a problem? Please describe.

Many motions in nvim can be wrapscanned, for example "n" and "N" when they hit the bottom or the top, they go top or bottom to research. I hope the motion in nvim-treesitter-textobjects can be wrapscanned too.

Describe the solution you'd like

For example, when there is no function below and I use "]m" to go to next, it can go to the first function. That will be definitely fancy if there is a configuration to enable or disable the feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions