Set up Helix
Install Helix and its language servers, then confirm that the tracked configuration loads.
On this page
Get the tracked Helix configuration working with its formatters and language servers. Helix is the primary editor; it needs no plugin submodules.
Prerequisites
- An installed dotfiles checkout; the configuration is in
~/.config/helix/. - Helix (
hx) onPATH. - Optional: the language servers below. Helix runs without them and reports each missing one in its health check.
| Language | Servers and formatters | Installed by the mise toolchain |
|---|---|---|
| Markdown | rumdl, marksman, ryl, harper-ls, markdown-oxide | All except markdown-oxide |
| YAML | ryl, yaml-language-server, ansible-language-server | All except ansible-language-server |
| Bash | bash-language-server, shfmt | All |
| Git commit messages | harper-ls | Yes |
Install Helix and the language servers
With mise, install the machine toolchain from ~/.config/mise/, which includes Helix:
mise install
Without mise, install Helix from your package manager or from https://helix-editor.com, then install the servers you need.
Verify
The health check lists each configured server with ✓ when it is on PATH:
hx --health markdown
✘ marks a missing server; Helix still opens files of that language without it.
Change a setting
-
Edit
~/.config/helix/config.tomlfor editor settings, or~/.config/helix/languages.tomlfor language servers. -
Run
:config-reloadin Helix, or restart it. -
Commit the change by name:
cd ~ && dotfiles add .config/helix/config.toml && dotfiles commit