Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uses // as commentstring in html #406

Open
yochem opened this issue Oct 10, 2023 · 4 comments
Open

Uses // as commentstring in html #406

yochem opened this issue Oct 10, 2023 · 4 comments

Comments

@yochem
Copy link

yochem commented Oct 10, 2023

While editing a html file I noticed that gcc inserts // as commentstring (independent of cursor location), even though :echo &commentstring prints <!--%s-->. I also have treesitter installed. Any idea how this is possible?

Nvim version: v0.10.0-dev-743+g9b5f58185-Homebrew
Comment Version: 0236521
Config (lazy):

return {
  "numToStr/Comment.nvim",
  opts = {},
  keys = { { "gc", mode = { "n", "v" } } },
}
@benlubas
Copy link

Nightly appears to break this plugin at the moment, specifically in filetypes with different comment strings, like markdown for example:

nvim 9.4.0:

screen_cap.mp4

nightly 10.0:

screen_cap.mp4

@benlubas
Copy link

I tracked my issue down to image.nvim's markdown integration, so I'll move my discussion over there

Weird that it works on stable with image.nvim though.

@maxp421
Copy link

maxp421 commented Nov 13, 2023

+1 currently have the same issue

Edit: Updating to the latest build (NVIM v0.9.4) fixed it.

@OuthBack
Copy link

Edit: Updating to the latest build (NVIM v0.9.4) fixed it.

Same issue and it worked for me go back to v0.9.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants