-
Hello,
import a from 'a';
import b from 'b';
import c from 'c';
// etc... I tried to group them like this, but no luck:
if (true) {
// anything
}
// <---- I want this blank line to be included to the upper fold (if statements fold)
function doSomething() {
// anything
} |
Beta Was this translation helpful? Give feedback.
Answered by
theHamsta
Feb 18, 2023
Replies: 1 comment 2 replies
-
At the moment you can only select individual nodes. There's a upstream PR that would allow to first iterate over all nodes mentioned |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
amaanq
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the moment you can only select individual nodes. There's a upstream PR that would allow to first iterate over all nodes mentioned
*
. Also thefold
module would need to be made aware of this. Nvim-treesitter-textobects usesmake-range!
which can be used to create fake node objects that work with most tree-sitter modules. It's a bit a workaround that queries only select nodes but you can't describe ranges.