Install for Neovim with npm
Supported operating systems:
quick-lint-js has an npm package, making it easy to install the LSP server for use by the Neovim plugin.
1. Install prerequisites
In order to install quick-lint-js' npm package, you must first install the npm client.
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)
2. Install quick-lint-js
Install quick-lint-js globally (on your machine) for use anywhere, including the Neovim plugin:
sudo npm install --global --unsafe-perm quick-lint-js
Note: The Neovim plugin does not use quick-lint-js if it is installed locally within your project. The Neovim plugin only uses quick-lint-js if it is globally installed.
3. Install Neovim plugin
Install this plugin with your favorite Neovim packaging system:
Choose a Neovim package manager above to get started!
Install as a Neovim package
This option requires Neovim 0.5.0 or newer.
- Download the quick-lint-js Neovim plugin.
-
Create the directory
~/.local/share/nvim/site/pack/external/start/
. -
Copy the extracted
quick-lint-js.vim
directory into the~/.local/share/nvim/site/pack/external/start/
directory. - Restart Neovim.
Install with dein.vim
This option requires dein.vim.
-
Add the following line to your
~/.config/nvim/init.vim
file betweencall dein#begin(...)
andcall dein#end()
:call dein#add('quick-lint/quick-lint-js', {'rtp': 'plugin/vim/quick-lint-js.vim', 'rev': '3.2.0'})
- Restart Neovim.
- In Neovim, run
:call dein#install()
.
Install with packer.nvim
This option requires packer.nvim.
-
Add the following line to your
~/.config/nvim/lua/plugins.lua
file betweenrequire('packer').startup(function()
andend)
:use {'quick-lint/quick-lint-js', rtp = 'plugin/vim/quick-lint-js.vim', tag = '3.2.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': '3.2.0'}
- Restart Neovim.
- In Neovim, run
:PlugInstall
.
4. 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 {}