Skip to content

support left aligned commenting #3

@tkkcc

Description

@tkkcc

This is the best comment plugin for me. nvim-comment and kommentary still need improvement. The only missing feature in this plugin is left aligned commenting. Some code formater will align comments. For example, python format black will turn

# if i==1:
    # print(2)

into

# if i==1:
# print(2)

lua's format lua-format will turn

--if a == 1 then
  --a = 2
  --a = 2
--end

into

-- if a == 1 then
-- a = 2
-- a = 2
-- end

This makes coding tough, and left aligned commenting can avoid this issue. Both nvim-comment and kommentary choose left aligned commenting. and nerdcommenter binds <leader>cl to it.

Also, when <leader>cl is used to uncomment, various spacing handling should be skiped.

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