Skip to content

Commit

Permalink
docs(helix): add typos to one language at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
tekumara committed Apr 19, 2024
1 parent 064c188 commit b8e7ce6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docs/helix-config.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Helix config

To enable typos for all files, add the following to your [languages.toml](https://docs.helix-editor.com/languages.html) file:
In your [languages.toml](https://docs.helix-editor.com/languages.html) file configure the `typos` language server as follows:

```toml
[language-server.typos]
Expand All @@ -15,10 +15,14 @@ config.config = "~/code/typos-lsp/crates/typos-lsp/tests/typos.toml"
# How typos are rendered in the editor, can be one of an Error, Warning, Info or Hint.
# Defaults to Warning.
config.diagnosticSeverity = "Warning"
```

Then add `typos` to one or more languages, as the last entry to avoid taking precedence, eg:

```toml
[[language]]
name = "all-files"
scope = ""
file-types = [{glob="*"}]
language-servers = ["typos"]
name = "rust"
language-servers = ["rust-analyzer", "typos"]
```

Currently it doesn't seem possible to add typos to all languages at once, see [this discussion](https://github.com/helix-editor/helix/discussions/8850).

0 comments on commit b8e7ce6

Please sign in to comment.