Fork me on GitHub
#vim
<
2018-03-17
>
dominicm09:03:52

Demo of the new sockets in neovim:

fu! Fb (arg1, data, arg3)
  echo a:data
endfunction

let x = sockconnect("tcp", "127.0.0.1:5432", {"on_data": function('Fb')})

call chansend(x, ["(def y 10)", ""])
I can then see y in my cli repl, and I get the user=> echo'd back at me.