Skip to content

Commit

Permalink
docs(ls): wrote instructions for isolating English in harper-ls
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-potter committed Jan 3, 2025
1 parent 1e0b5b0 commit 32bf9f4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/web/src/routes/docs/integrations/neovim/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,22 @@ lspconfig.harper_ls.setup {
},
}
```

If you work with a lot of documents that are a mixture of English and another language, Harper can attempt to automatically detect which is which and only lint the English text.
To enable it, just set the `isolateEnglish` key.

:::note
This feature is incredibly new and unstable.
Do not expect it to work perfectly.
If improvements are important to you, feel free to [open an issue](https://github.com/Automattic/harper/issues/new?template=Blank+issue) to let us know.
:::

```lua
lspconfig.harper_ls.setup {
settings = {
["harper-ls"] = {
isolateEnglish = false
}
},
}
```

0 comments on commit 32bf9f4

Please sign in to comment.