Closed niuiic closed 4 months ago
This appears to be the issue of the built-in comment function. Close it.
I believe #55 is the root cause for this. Uninstalling jsdoc
parser makes uncommenting work.
It's a matter of configuring jsdoc
. See my comment in the other issue for a longer explanation.
opts = {
lang = {
jsdoc = "/** %s */",
},
}
As soon as you are inside a jsdoc
block its parser takes over. There is no default config for jsdoc
, so it ends up using Neovim's default commentstring
.
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.10.0
Operating system/version
arch linux
Describe the bug
Try to config like this.
Steps To Reproduce
Failed to uncomment the first line. Instead, it became
///** console.log('hello') */
.Expected Behavior
Repro