[mini.comment] Does not uncomment C's /* syntax correctly #1382
-
Hey there. Wondering if this is a fixable issue with mini.comments. I work on a C codebase which uses the '/* */' comment syntax. It appears that I've uploaded a screencap to explain. I read thru the help but nothing stood out to me on how to fix this. Screen.Recording.2024-12-06.at.8.15.09.AM.mov |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
'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 That said, I can not reproduce this. So:
|
Beta Was this translation helpful? Give feedback.
'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:
:=vim.bo.commentstring
(buffer-local 'commentstring' value) show?config.option.custom_commentstring
defined? You can check it with:=MiniComment.config.option.custom_commentstring
(should benil
if nothing is defined).