Skip to content

[mini.comment] Does not uncomment C's /* syntax correctly #1382

Closed Answered by echasnovski
ldelossa asked this question in Q&A
Discussion options

You must be logged in to vote

'mini.comment' uses 'commentstring' option to determine comment structure. It is taken either from local tree-sitter language (useful in, for example, markdown code blocks) or buffer's option value. There is also a config.options.custom_commentstring to programmatically override in some complex cases (like JSX files).

That said, I can not reproduce this. So:

  • What Neovim version are you using?
  • What does executing :=vim.bo.commentstring (buffer-local 'commentstring' value) show?
  • Do you have config.option.custom_commentstring defined? You can check it with :=MiniComment.config.option.custom_commentstring (should be nil if nothing is defined).
  • Do you have 'comment' tree-sitter parser install…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ldelossa
Comment options

Answer selected by ldelossa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants