[X] I have searched the existing issues of ts-comments.nvim
[X] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
0.10.0
Operating system/version
Macos sonoma 14.1.2
Describe the bug
In case you want to comment blocks with different comments at once you get only one time of comments instead of different comment types for different blocks.
That's indeed a limitation to NEovim's commenting which is always line wise and only gets the commentstring for the first line that it then uses for all the lines
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.0
Operating system/version
Macos sonoma 14.1.2
Describe the bug
In case you want to comment blocks with different comments at once you get only one time of comments instead of different comment types for different blocks.
Steps To Reproduce
const Logo = "https://logrocket-assets.io/static/home-hero-c97849b227a3d3015730e3371a76a7f0.svg";
const FirstComponent: React.FC<{}> = () => { return (
A Simple React Component Example with Typescript
This component shows the Logrocket logo.
For more info on Logrocket, please visit https://logrocket.com
); };
export default FirstComponent;
tsx = { "// %s", -- default commentstring when no treesitter node matches "/ %s /", call_expression = "// %s", -- specific commentstring for call_expression jsx_attribute = "// %s", jsx_element = "{/ %s /}", jsx_fragment = "{/ %s /}", spread_element = "// %s", statement_block = "// %s", }