lua interface or "select node" call?
I love this plugin - it's become one of the plugins I can't live without, it's the main way I navigate daily these days.
Sometimes I find myself navigating towards a certain function or statement in order to delete/change it. Currently, I would Alt + [hjkl] to where I need to be, then use some motion like % or i{ to select the code.
If I could call treewalker using lua and set select = true in the keymap instead of in the setup(), then I could use something like Alt + Shift + [hjkl] to select the code instead.
Before the tree-climber.nvim broke due to neovim API changes, I used to navigate to a place and use it's "select node" feature, which would do the same thing.
Yeah, honestly - this whole setup() thing, being stateful, I think it's antithetical to good program design, and it's antithetical to the design direction of this plugin - statefulness has been the enemy since day 1. But it's these dang non-lua Ex subcommands, Treewalker Down, Treewalker SwapLeft etc - it's much harder to get arguments into those.
So that IMO terrible setup() junk needs to stay. But, there's no reason to not allow for overrides if someone is keymapping straight to lua commands, which could mean if you are mapping straight to lua commands, you could always "override" and forgo setup() entirely.
I'll get working on this - it's a good idea, and I'm surprised it's taken me this long to implement it tbh.
Ok this is done! Is this working for you / what you asked for? If not to either, please feel free to re-open the issue :)
Wow, super cool! I'm positive it'll work, thank you!!