Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

docs(editors): add dialect in sample and propagate common config changes

Matthew Espino9b9f6eb16d81
diff --git a/packages/web/src/routes/docs/integrations/emacs/+page.md b/packages/web/src/routes/docs/integrations/emacs/+page.md
index 00ab54442..525e34503 100644
--- a/packages/web/src/routes/docs/integrations/emacs/+page.md
+++ b/packages/web/src/routes/docs/integrations/emacs/+page.md
@@ -58,7 +58,8 @@ Additionally, you can also configure things like which linters to use or how you
:codeActions (:ForceStable :json-false)
:markdown (:IgnoreLinkTitle :json-false)
:diagnosticSeverity "hint"
- :isolateEnglish :json-false)))
+ :isolateEnglish :json-false
+ :dialect "American")))
```
:::note
@@ -67,6 +68,17 @@ This example only contains some of the available linters, check out our [rules p
For more information on what each of these configs do, you can head over to the [configuration section](./language-server#Configuration) of our `harper-ls` documentation.
+## Common Config Changes
+
+Programmers often find certain rules have too much of a hair-trigger.
+The below config is a simple cut-and-paste that gives you much fewer false-positives.
+
+```elisp title=init.el
+(setq-default eglot-workspace-configuration
+ '(:harper-ls (:linters (:SpellCheck :json-false
+ :SentenceCapitalization :json-false))))
+```
+
## Additional Links
- [Community discussion on configuring `harper-ls` for Emacs](https://github.com/Automattic/harper/discussions/150)
diff --git a/packages/web/src/routes/docs/integrations/helix/+page.md b/packages/web/src/routes/docs/integrations/helix/+page.md
index 27dc4bbe1..8b2628799 100644
--- a/packages/web/src/routes/docs/integrations/helix/+page.md
+++ b/packages/web/src/routes/docs/integrations/helix/+page.md
@@ -44,6 +44,7 @@ userDictPath = ""
fileDictPath = ""
diagnosticSeverity = "hint"
isolateEnglish = false
+dialect = "American"
[language-server.harper-ls.config.harper-ls.linters]
SpellCheck = true
@@ -71,6 +72,17 @@ This example only contains some of the available linters, check out our [rules p
For more information on what each of these configs do, you can head over to the [configuration section](./language-server#Configuration) of our `harper-ls` documentation.
+## Common Config Changes
+
+Programmers often find certain rules have too much of a hair-trigger.
+The below config is a simple cut-and-paste that gives you much fewer false-positives.
+
+```toml title=languages.toml
+[language-server.harper-ls.config.harper-ls.linters]
+SpellCheck = false
+SentenceCapitalization = false
+```
+
## Additional Links
- [Helix's official documentation on `harper-ls`](https://github.com/helix-editor/helix/wiki/Language-Server-Configurations#harper-ls)
diff --git a/packages/web/src/routes/docs/integrations/neovim/+page.md b/packages/web/src/routes/docs/integrations/neovim/+page.md
index 58f6760db..a35bb1ee8 100644
--- a/packages/web/src/routes/docs/integrations/neovim/+page.md
+++ b/packages/web/src/routes/docs/integrations/neovim/+page.md
@@ -46,7 +46,8 @@ require('lspconfig').harper_ls.setup {
IgnoreLinkTitle = false
},
diagnosticSeverity = "hint",
- isolateEnglish = false
+ isolateEnglish = false,
+ dialect: "American"
}
}
}