Install for Sublime Text on Arch Linux
Supported operating systems:
1. Install prerequisites
Install the LSP Sublime Text package:
- Open Sublime Text.
- Open the Command Palette (press Control-Shift-P) and type "Install Package Control".
- Open the Command Palette and type "Package Control: Install Package", then type "LSP".
2. Install quick-lint-js
quick-lint-js has two packages in the AUR:
- quick-lint-js: latest stable release
- quick-lint-js-git: unstable version from VCS
If you are using an AUR helper, install quick-lint-js on Arch Linux using your helper. For example, to install with yay, open a terminal and run the following commands:
yay -Sy quick-lint-js
If you want to install without an AUR helper, download and install the package from AUR manually by running the following commands:
pacman -Sy base-devel git git clone https://aur.archlinux.org/quick-lint-js.git aur-quick-lint-js cd aur-quick-lint-js makepkg -si
3. Configure Sublime Text
After installing quick-lint-js, you need to register quick-lint-js in Sublime Text's LSP package:
- Open Sublime Text.
- Open the Command Palette (press Control-Shift-P) and type "Preferences: LSP Settings".
-
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, "selector": "source.js | source.jsx | source.ts | source.tsx" } } }