#
Install for Sublime Text with Scoop

## 1. Install prerequisites

Install the LSP Sublime Text package:

1. Open Sublime Text.
2. Open the Command Palette (press `Control-Shift-P`) and type "Install Package Control".
3. Open the Command Palette and type "Package Control: Install Package", then type "LSP".

## 2. 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

## 3. Configure Sublime Text

After installing quick-lint-js, you need to register quick-lint-js in Sublime Text's LSP package:

1. Open Sublime Text.
2. Open the Command Palette (press `Control-Shift-P`) and type "Preferences: LSP Settings".
3. In the `LSP.sublime-settings` file which opens, add the following code. If `"clients"` already exists, add `"quick-lint-js"` inside the existing `{ }`:

   >     {
   >         "clients": {
   >             "quick-lint-js": {
   >                 "command": ["quick-lint-js", "--lsp-server"],
   >                 "enabled": true,
   >                 "languageId": "javascript",
   >                 "syntaxes": ["Packages/JavaScript/JavaScript.sublime-syntax"]
   >             }
   >         }
   >     }

Example LSP settings for Sublime Text