You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-22Lines changed: 23 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,14 @@ See below for a quickstart example that you can copy and run immediately.
19
19
20
20
The `neovim` package exposes these functions:
21
21
22
-
-`getNvimFromEnv`: Tries to find a usable `nvim` binary on the current system.
23
-
-`attach`: The primary interface. Takes a process, socket, or pair of write/read streams and returns a `NeovimClient` connected to the`nvim`server.
22
+
-`findNvim`: Tries to find a usable `nvim` binary on the current system.
23
+
-`attach`: The primary interface. Takes a process, socket, or pair of write/read streams and returns a `NeovimClient` connected to an`nvim`process.
24
24
25
25
### Quickstart: connect to Nvim
26
26
27
27
Following is a complete, working example.
28
28
29
-
1. Install the `neovim` package _locally_ (i.e. without `-g`. Node will fail with `ERR_MODULE_NOT_FOUND` if a script tries to import a _globally_ installed package).
29
+
1. Install the `neovim` package _locally_ (i.e. without `-g`. Node throws `ERR_MODULE_NOT_FOUND` if a script imports a _globally_ installed package).
30
30
```bash
31
31
npm install neovim
32
32
```
@@ -38,11 +38,11 @@ Following is a complete, working example.
38
38
```js
39
39
import*aschild_processfrom'node:child_process'
40
40
import*asassertfrom'node:assert'
41
-
import { attach, getNvimFromEnv } from'neovim'
41
+
import { attach, findNvim } from'neovim'
42
42
43
43
// Find `nvim` on the system and open a channel to it.
0 commit comments