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
788 stars 38 forks source link

How to use dictionary with ltex-cli? #283

Open dpo opened 1 year ago

dpo commented 1 year 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 1 year ago

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

dpo commented 11 months ago

Bump

dpo commented 7 months ago

Does the dictionary option work for anybody?