Install for Kate with npm
Supported operating systems:
quick-lint-js has an npm package, making it easy to install the LSP server for use by Kate.
1. Install prerequisites
In order to install quick-lint-js' npm package, you must first install the npm client.
Install Kate version 19 or newer.
2. Install quick-lint-js
Install quick-lint-js globally (on your machine) for use anywhere, including by Kate:
sudo npm install --global --unsafe-perm quick-lint-js
Note: Kate will not use quick-lint-js if it is installed locally within your project. Kate will only uses quick-lint-js if it is globally installed.
3. Configure Kate
Open the LSP Client tab in Kate's settings. In your User Server Settings, paste the following configuration:
{
"servers": {
"javascript": {
"command": ["quick-lint-js", "--lsp-server"],
"documentLanguageId": true,
"highlightingModeRegex": "^JavaScript.*$",
"root": "",
"url": "https://quick-lint-js.com/install/kate/"
}
}
}