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

Setting of hiddenFalsePositives nvim lua not working #270

Open SolonRubens opened 10 months ago

SolonRubens commented 10 months ago

I got ltex-ls with Mason and lsp-zero installed.

In my lsp.lua I have the following line: require("lspconfig").ltex.setup({ settings = { ltex = { language = "de-DE", hiddenFalsePositives = { "de-DE": [ "{\"rule\": \"UPPERCASE_SENTENCE_START\", \"sentence\": \"\\\\KBZ\"}" ] } } } }) But when I try to run :so I always get an error : Error loading lua [string ":source (no file)"]:17: '}' expected (to close '{' at line 16) near ':' I don't know where this comes from and what I could do about this