this post was submitted on 08 Jun 2024
1 points (100.0% liked)

Neovim

2161 readers
1 users here now

founded 1 year ago
MODERATORS
 

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.

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 0 points 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.

[โ€“] [email protected] 0 points 5 months ago* (last edited 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