Hi everyone,
could someone help a desperate student to turn off the ‘Possible spelling mistake found’ in LaTeX files with the vimtex plugin. It’s been 3h now and I still dont have any idea on how to turn this off (or at least change the language, but knowing how to do both would be really cool). I tried everything I could, still don’t kow where this is from.
Help would be really appreciated.
Thanks in advance.

  • answer42@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    5 months ago

    I don’t use vimtex, but this looks to be related to the encoding of international characters. In the vimtex getting started, I found this in the requirements:

    • UTF8 character encoding enabled (enabled by default in Neovim; place the line set encoding=utf-8in your vimrc).

    See :help vimtex-requirements for details on requirements for using VimTeX.

    Maybe that could help

  • metiulekm@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    This looks suspiciously similar to what LTeX produces for me. Are you sure that this is not the true origin of the error? If this is indeed LTeX, you will see it in :LspInfo.

    If so, here is some info about changing the language of LTeX: https://valentjn.github.io/ltex/advanced-usage.html In short, you could try \usepackage[french]{babel}, or % LTeX: language=fr-FR.