Skip to content

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

feat: added configuration section to `harper-ls` README

Elijah Potter6c4f4923b9e2
diff --git a/harper-ls/README.md b/harper-ls/README.md
index 4b50315ed..972c19350 100644
--- a/harper-ls/README.md
+++ b/harper-ls/README.md
@@ -37,6 +37,19 @@ This dictionary is a simple word list in plain-text.
You can add and remove words at will.
You can add to the user dictionary with code actions on misspelled words.
+#### Configuration
+
+You don't have to stick with the default locations (listed above).
+If you use Neovim, you can set the location of the dictionary with the `userDictPath` key:
+
+```lua
+lspconfig.harper_ls.setup {
+ settings = {
+ userDictPath = "~/dict.txt"
+ },
+}
+```
+
### File-Local Dictionary
Sometimes, you'll encounter a word (or name) that is only valid within the context of a specific file.