#neovim #lua #plugin crew - I need help with something. I have a few custom functions that I use in my #nvim config, but I want to take it a level higher. I want to set this function to run with a #vim command, such as :RunFunc.
I can see plenty of tutorials on writing custom functions, but I can't seem to figure out how to execute a function with a custom command. Currently digging through some existing plugins to see what I can find....
@notnorm command! RunFunc call YourFunction()
@notnorm With arguments: command! -nargs=* Command call <SID>Function(<f-args>)