general target jump
jam1015 opened this issue · 0 comments
jam1015 commented
you give this example:
vim.keymap.set("n", "gj", function() -- jump to all that you specify
sts.targeted_jump({
"function",
"if_statement",
"else_clause",
"else_statement",
"elseif_statement",
"for_statement",
"while_statement",
"switch_statement",
})
end, opts)
and suggest that we look at treesitter playground to set node types based on language; my suggestion is to have a function that automatically targets every node type available in the document so that the user doesn't have to think/configure. I could try to figure out how to implement this but don't have time right now