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
766 stars 33 forks source link

Spellchecking in spanish #166

Open KatzeCode opened 2 years ago

KatzeCode commented 2 years ago

Hi, I'm using Neovim, I have the ltex-ls server installed with LspInstall, but when I activate it, it gives alarms for every single word I type in my LaTeX document (I'm writing in spanish), and I wasn't able to find a way to change this language spellcheck in the init.lua file. I'd appreciate if someone has the answer to this, bc all my documents are written in spanish, so I get many alarms of the spellchecking. In a ltex-ls page I saw that just loading the \usepackage[spanish]{babel} in the LaTeX document the ltex-ls would detect it and automatically change the language, but it didn't work. Thanks in advance.

saulaxel commented 2 years ago

I set the language in the setup, but I still have problems with some weird errors in formulas. This is what the setting looks like:

local lspconfig = require('lspconfig')
lspconfig.ltex.setup {
    settings = {
        ltex = {
            language = 'es'
        }
    }
}