Skip to content

Commit 02448b1

Browse files
committed
Add usage for Neovim
1 parent de63ca2 commit 02448b1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@
6262
let g:syntastic_javascript_eslint_exec = 'eslint_d'
6363
```
6464

65+
### Neovim
66+
67+
- With [nvim-lint][]
68+
69+
```lua
70+
vim.env.ESLINT_D_PPID = vim.fn.getpid()
71+
require('lint').linters_by_ft = {
72+
javascript = {'eslint_d'},
73+
typescript = {'eslint_d'},
74+
}
75+
```
76+
6577
### Emacs
6678

6779
Use [flycheck][] with the `javascript-eslint` checker:
@@ -216,6 +228,7 @@ MIT
216228
[eslint]: https://eslint.org
217229
[ale]: https://github.com/dense-analysis/ale
218230
[syntastic]: https://github.com/scrooloose/syntastic
231+
[nvim-lint]: https://github.com/mfussenegger/nvim-lint
219232
[flycheck]: http://www.flycheck.org/
220233
[SublimeLinter-eslint]: https://github.com/SublimeLinter/SublimeLinter-eslint
221234

0 commit comments

Comments
 (0)