Install for Neovim with Scoop
Install prerequisites
Install and configure one of the following Neovim plugins:
- ALE - Asynchronous Lint Engine v2.1.1 or newer, or version v3.0.0 or newer
- coc.nvim - Conquer of Completion v0.0.80 or newer
- nvim-lspconfig (requires Neovim 0.5.0 or newer)
Install quick-lint-js
quick-lint-js has a Scoop package, making it easy to install the CLI and LSP server on Windows.
In order to install quick-lint-js' Scoop package, you must first install Scoop.
Open a command prompt or PowerShell window. Run the following command to install quick-lint-js:
scoop install quick-lint-js
Install Neovim plugin
Install this plugin with your favorite Neovim packaging system:
- Neovim package (built into Neovim 0.5.0 and newer)
- dein.vim
- packer.nvim
- Vim-Plug
Install as a Neovim package
- Download the quick-lint-js Neovim plugin.
-
Create the directory
%LOCALAPPDATA%\nvim\pack\external\start\
. -
Copy the extracted
quick-lint-js.vim
directory into the%LOCALAPPDATA%\nvim\pack\external\start\
directory. - Restart Neovim.
Install with dein.vim
This option requires dein.vim.
-
Add the following line to your
%LOCALAPPDATA%\nvim\init.vim
file file betweencall dein#begin(...)
andcall dein#end()
:call dein#add('quick-lint/quick-lint-js', {'rtp': 'plugin/vim/quick-lint-js.vim', 'rev': '2.14.0'})
- Restart Neovim.
- In Neovim, run
:call dein#install()
.
Install with packer.nvim
This option requires packer.nvim.
-
Add the following line to your
%LOCALAPPDATA%\nvim\lua\plugins.lua
file file betweenrequire('packer').startup(function()
andend)
:use {'quick-lint/quick-lint-js', rtp = 'plugin/vim/quick-lint-js.vim', tag = '2.14.0', opt = true}
- Restart Neovim.
- In Neovim, run
:PackerSync
.
Install with Vim-Plug
This option requires Vim-Plug.
-
Add the following line to your
vimrc
file betweencall plug#begin(...)
andcall plug#end()
:Plug 'quick-lint/quick-lint-js', {'rtp': 'plugin/vim/quick-lint-js.vim', 'tag': '2.14.0'}
- Restart Neovim.
- In Neovim, run
:PlugInstall
.
Configure
Configure the Neovim plugin by opening Neovim and running :help quick-lint-js, or read the Neovim plugin docs online.
nvim-lspconfig users can add this line to their init.lua
file:
require('lspconfig/quick_lint_js').setup {}