Skip to content

Is there a way to force the comment at the beginning of the line? #502

Description

@ipkiss42

With the tcomment plugin, I was using let g:tcomment#options = {'col': 1} to always have the comment string at the beginning of the line, even if the line was indented with leading spaces.

I like this setting because commenting lines of code is usually temporary, and with the comment at the beginning of the line, such lines stand out more (in particular with folding enabled). Note that I always want the first column, so I don't need the column to be configurable like in tcomment.

Is there an equivalent with Comment.nvim? This is the last thing that is preventing me from switching :)

Activity

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