If you check the help for :command-completion
, there is a line that reads:
-complete=lua Lua expression
But it does not give further instructions about how to use it, or how to provide a Lua expression. Is it supposed to work like custom,function? Can I inline a Lua expression somehow? Does it do something else?