legendary.nvim icon indicating copy to clipboard operation
legendary.nvim copied to clipboard

[Feature]: per-mode implementations for functions (funcs)

Open hinell opened this issue 8 months ago • 6 comments

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 }
})

hinell avatar Oct 19 '23 16:10 hinell