Skip to content

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

docs(ls): give example config that disables `sentence_capitalization`

Elijah Potter9e6059f0ce7f
diff --git a/packages/web/src/routes/docs/integrations/neovim/+page.md b/packages/web/src/routes/docs/integrations/neovim/+page.md
index 7b4a84e59..58f6760db 100644
--- a/packages/web/src/routes/docs/integrations/neovim/+page.md
+++ b/packages/web/src/routes/docs/integrations/neovim/+page.md
@@ -20,7 +20,7 @@ require('lspconfig').harper_ls.setup {}
Additionally, you can also configure things like which linters to use or how you want code actions to appear. Below is an example config where everything is set to their default values:
-```lua title=inti.lua
+```lua title=init.lua
require('lspconfig').harper_ls.setup {
settings = {
["harper-ls"] = {
@@ -58,6 +58,24 @@ 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.
+
+```lua title=init.lua
+require('lspconfig').harper_ls.setup {
+ settings = {
+ ["harper-ls"] = {
+ linters = {
+ SentenceCapitalization = false,
+ SpellCheck = false
+ }
+ }
+ }
+}
+```
+
## Additional Links
- [nvim-lspconfig's documentation on `harper-ls`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#harper_ls)