vimdoc icon indicating copy to clipboard operation
vimdoc copied to clipboard

Support default argument values

Open flwyd opened this issue 4 years ago • 1 comments

Vim 8.1.1310 added default values for function arguments, e.g.

function Greet(greeting = 'hello')
  echo a:greeting 'world'
endfunction

vimdoc currently parses this as a two-arg function with parameters greeting and hello: Greet({greeting}, {hello}).

flwyd avatar Apr 06 '20 03:04 flwyd

Awesome, yeah, we should definitely support this style!

dbarnett avatar Apr 06 '20 05:04 dbarnett