legendary.nvim
legendary.nvim copied to clipboard
[Feature]: per-mode implementations for functions (funcs)
Similar Issues
- [X] Before filing, I have searched for similar issues.
Description
Very similiar to, but for functions:
- https://github.com/mrjones2014/legendary.nvim/issues/215
Can we have the same feature for legendary.funcs(...)
?
There are functions, that can only be run in visual mode, so it's logical to have { mode = {...} }
restrictions so upon running :Legendary
we have these funcs filtered...
endary.funcs({
{ mode = { "v" }, description = "Buffer: my fn in visual mode" , fn }
})