Skip to content

Invalid Heex commentstring + why does Comment.nvim re-implement Neovim's 'commentstring' options? #497

@mawkler

Description

@mawkler

I noticed that the Heex filetype uses the invalid comment style <!-- %s --> instead of <%!-- %s --%>. I went digging and found out that Neovim does in fact have the correct commentstring specified. Then I found that the problem is that this plugin has its own hard-coded commentstrings per filetype, and the Heex one is incorrect. Why does Comment.nvim re-implement commenstring when Neovim already has the specifications built-in?

I understand that Comment.nvim might want to specify the blockwise comment styles, since Neovim doesn't support those natively, but how come the linewise commentstrings are also hard-coded? Can't Comment.nvim just rely on Neovim's commentstrings?

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