Skip to content

Ignore empty lines in region #213

Closed
Closed

Description

@jgollenz

Often times, I toggle off groups of consecutive statements. Those groups are each separated by empty lines. Then when I want to toggle on all of the groups. This does not work, because of the empty lines between them:

block-comments

I cannot think of a situation where the current behavior is the one I would want, but I might be missing something. Perhaps this is already possible with the plugin, but I don't know how. Any thoughts?

Activity

  1. numToStr commented on Aug 21, 2022

    @numToStr
    Owner

    Why not ignore empty lines completely?

    require'Comment'.setup({ ignore = '^$' })

    Please read: https://github.com/numToStr/Comment.nvim#-ignoring-lines

  2. numToStr commented on Aug 21, 2022

    @numToStr
    Owner

    (Also please use https://github.com/numToStr/Comment.nvim/discussions for asking questions :) )

  3. jgollenz commented on Aug 21, 2022

    @jgollenz
    ContributorAuthor

    Shame on me. Sorry for wasting your time. Thanks for the quick reply. Will ask in discussions after reading the docs in the future.

  4. Repository owner locked and limited conversation to collaborators on Aug 21, 2022
  5. converted this issue into a discussion #214 on Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions