{"repo":"neovim/node-client","free":true,"listed":false,"github":"https://github.com/neovim/node-client","clone":"git clone https://github.com/neovim/node-client.git","description":"Nvim Node.js client and plugin host","language":"TypeScript","stars":535,"topics":["neovim","nodejs","nvim","typescript","vim","rpc"],"license":"MIT","category":"dev-tools","readme_excerpt":"Neovim node.js client CI (node = 16, Linux/macOS/Windows) Coverage npm ------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------- ------------------------------- [![Coverage Badge][]][Coverage Report] [![npm version][]][npm package] Install For \"remote plugins\", the Nvim Node.js provider expects the neovim package to be globally installed: Or for non-plugin purposes, neovim works like any other NPM package. See below for a quickstart example that you can copy and run immediately. Requirements Node.js 16 and later is tested. Older versions of Node.js may work but are not tested. Usage Functions The neovim package provides these functions: - attach() : The primary interface. Takes a process, socket, or pair of write/read streams and returns a NeovimClient connected to an nvim process. - findNvim() : Tries to find a usable nvim binary on the current system. Logging - At load-time, the neovim module replaces (\"monkey patches\") console with its logger interface, so console.log will call logger.info instead of writing to stdout (which would break the stdio RPC channel). - To skip this patching of console.log , pass a custom logger to attach() . - Best practice in any case is to use the logger available from the NeovimClient returned by attach() , instead of console logging functions. - Set the $NVIM NODE LOG FILE env var to (also) write logs to a file. - Set","default_branch":null,"files":null,"tree":[],"storefront":"/r/neovim","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/neovim/node-client/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}