valentjn / ltex-ls

LTeX Language Server: LSP language server for LanguageTool :mag::heavy_check_mark: with support for LaTeX :mortar_board:, Markdown :pencil:, and others
https://valentjn.github.io/ltex
Mozilla Public License 2.0
717 stars 33 forks source link

How to use dictionary with ltex-cli? #283

Open dpo opened 7 months ago

dpo commented 7 months ago

Could you please help me understand how to use a dictionary defined in a JSON settings file with ltex-cli? Here is what I have:

❯ cat ltex.json
{
  "ltex.language": "en-US",
  "ltex.dictionary": {
    "en-US": [
      "GERAD",
    ]
  }
}

❯  echo "I am at GERAD" | ltex-cli --client-configuration=$PWD/ltex.json -

I am at GERAD
        Use 'GERALD'
        Use 'GERARD'
        Use 'GRAD'
        Use 'GÉRARD'

So it seems like the dictionary entry is simply ignored. What am I doing wrong?

dpo commented 7 months ago

Not sure if I should have opened this issue over at https://github.com/valentjn/lsp-cli.

dpo commented 6 months ago

Bump

dpo commented 2 months ago

Does the dictionary option work for anybody?