Is your feature request related to a problem? Please describe.
When writing in languages that use language injections in their parsers, e.g. Astro, Flash Treesitter mode does not allow selecting nodes inside of language injections.
Describe the solution you'd like
Include nodes from language injections in Flash Treesitter selection.
Excuse me if I'm wrong, but I think this can be done just by including ignore_injections = false in the call to LanguageTree:named_node_for_range.
Describe alternatives you've considered
A configuration option could also be added for whether language injections should be skipped, though I'm not sure what situations that would be useful for.
EDIT: After trying it I realised that the TSNode:parent() traversal apparently does not cross outside of a language injection (which seems odd to me, but suppose that's for Neovim or Treesitter to decide, not sure which one is responsible). So I suppose having a config would make more sense because of that.
Did you check the docs?
Is your feature request related to a problem? Please describe.
When writing in languages that use language injections in their parsers, e.g. Astro, Flash Treesitter mode does not allow selecting nodes inside of language injections.
Describe the solution you'd like
Include nodes from language injections in Flash Treesitter selection.
Excuse me if I'm wrong, but I think this can be done just by including
ignore_injections = false
in the call toLanguageTree:named_node_for_range
.Describe alternatives you've considered
A configuration option could also be added for whether language injections should be skipped, though I'm not sure what situations that would be useful for.
EDIT: After trying it I realised that the
TSNode:parent()
traversal apparently does not cross outside of a language injection (which seems odd to me, but suppose that's for Neovim or Treesitter to decide, not sure which one is responsible). So I suppose having a config would make more sense because of that.Additional context
No response