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

VIM - Vi IMproved

1055 readers
19 users here now

For Vim enthusiasts and anyone interested in Vim/Neovim!

"VIM is the greatest editor since the stone chisel." - Dr. Jose Unpingco

#HJKL

founded 1 year ago
MODERATORS
 

cross-posted from: https://lemmy.world/post/16310027

Help disabling "Possible spelling mistake found" in vimtex

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 5 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 5 months ago (1 children)

Do you have the language set within the .tex document itself? /selectlanguage{French} Or something like that. You may need to /usepackage{babel} as well or similar. I haven't played around much with LaTeX, so not sure this will work or not--but everything I've seen indicates that the TeX document language setting is what will key the LSP language setting.

[–] [email protected] 1 points 5 months ago (1 children)

On second thought, it looks like it probably isn't even vimtex or LSP related--probably just your vim settings. Try :set spelllang+=fr

[–] MeanPresentation80 1 points 5 months ago

Yes, just found out it’s not actually latex related, thought this because the spelling mistake text never showed up before, I try what you said later, thank you for your help !

[–] MeanPresentation80 2 points 5 months ago (1 children)

Here is the solution in case someone came across this post in the future.To set the language of your LaTeX file, put :

\usepackage\[french]{babel}

and download the texlive-lang package corresponding :

sudo pacman -S texlive-lang

[–] [email protected] 1 points 5 months ago

Glad you got it resolved! (Especially as, while I noted in my earlier reply, I don't use LaTeX currently, but I'm planning on switching over from asciidoc in the near future for reports and notes and occasionally I do need to write in French!)