neovim/node-client

Example in README doesn't work

blinry opened this issue · 2 comments

Hey :)

When we tried to run the provided example in the README (in TypeScript), we encountered three issues:

  • Overwriting "nvim.window" gave us a type error. We solved this by just assigning to a local variable.
  • Using the provided tests, the check that lines should be [""] failed for us. It actually was equal to [].
  • We got the error "nvim_proc.disconnect() is not a function". Not sure yet why.

Can you reproduce these errors?

If you can provide an example that works, please send a PR.

Duplicate of #154 #41

When we tried to run the provided example in the README (in TypeScript), we encountered three issues:

After #309 the README.md now provides a fully working self-contained example. You should be able to copy-paste the code and run it immediately.