Skip to content

Remove bang = true to permit custom textobject as motion #411

@dirichy

Description

@dirichy

Checklist

  • Have you read through :h nvim-surround to see if there might be any relevant information there?
    yes
    Is your feature request related to a problem? Please describe.
    If possible, provide a sample buffer/keymap sequence, along with the expected result.
    I have some custom textobject, I want to add surround support for them. but I find that config.selection can only accept vim's motion, not custom motion, because it use vim.cmd({...,bang=true})
    Describe the solution you'd like
    A clear and concise description of what you want to happen.
    remove bang = true
    Additional context
    Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions