I'm building a custom unite.vim source one of the choices should be able to call a function that can accept a dictonary
function! s:source.gather_candidates(args, context) abort "{{{
let l:nodeInfo = a:context.file
return [
\{
\ 'word': 'delete the current node',
\ 'kind': 'command',
\ 'source': s:source.name,
\ 'action__command': 'call DeleteNode(' . l:nodeInfo .')',
\ }]
endfunction "}}}
And then to just test it out, echo the dictionary
function! DeleteNode(node) abort "{{{
let l:currentNode = a:node
echo l:currentNode
endfunction "}}}
But when I attempt to load my source, I get
Vim(return):E731: using Dictionary as a String
How can I pass the dictionary (around 24 keys) to the function?