You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3: run lua print(require('ts_context_commentstring.internal').calculate_commentstring{location = require('ts_context_commentstring.utils').get_cursor_location()}) at various locations, in the script-tag, html-part, and in the css. Could also try key gcc which should comment.
Expected behavior
I am expecting different commentstrings for each location.
Actual behavior
Same comment in all location (html-comment)
Additional context
This originally occurred in my nvim-setup based on astronvim.
The text was updated successfully, but these errors were encountered:
can anybody still reproduce this? I had the same problem of getting all HTML comments when I had an incompatible configuration of the highlight setting for treesitter, but once I changed that, it started working fine. Especially using the minimal config also worked for me.
Minimal reproducible full config
Just the minimal setup from the cloned repository
Description
All the locations return the html-commentstring.
Steps to reproduce
:TSInstall svelte
and restarte: test.svelte
and use content like below:3: run
lua print(require('ts_context_commentstring.internal').calculate_commentstring{location = require('ts_context_commentstring.utils').get_cursor_location()})
at various locations, in the script-tag, html-part, and in the css. Could also try keygcc
which should comment.Expected behavior
I am expecting different commentstrings for each location.
Actual behavior
Same comment in all location (html-comment)
Additional context
This originally occurred in my nvim-setup based on astronvim.
The text was updated successfully, but these errors were encountered: