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
Is there a way to only use the configured comment strings for a certain filetype and not use whatever Treesitter thinks the current context is?
For example, in a Twig file I would like to only use twig style {# %s #} comments and never use HTML style <!-- %s --> comments. Most of the time the context based comments work great but in my Twig files I would like to be able to set it to only use Twig style comments. Is this possible?
Hopefully that makes sense, might be confusing some of the terminology. Thanks for any help!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to only use the configured comment strings for a certain filetype and not use whatever Treesitter thinks the current context is?
For example, in a Twig file I would like to only use twig style
{# %s #}
comments and never use HTML style<!-- %s -->
comments. Most of the time the context based comments work great but in my Twig files I would like to be able to set it to only use Twig style comments. Is this possible?Hopefully that makes sense, might be confusing some of the terminology. Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions