Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling spell check in certain cases #2293

Closed
xsrvmy opened this issue Jan 8, 2022 · 1 comment
Closed

Disabling spell check in certain cases #2293

xsrvmy opened this issue Jan 8, 2022 · 1 comment

Comments

@xsrvmy
Copy link

xsrvmy commented Jan 8, 2022

It looks like vimtex already turns off spellcheck for commands and inside math mode. Is it possible to also turn off spellcheck

  1. Inside a magic comment (eg. %!TEX root=main.tex marks 'tex' as misspelled, but I don't want to add that to the dictionary because it's a common typo for text)
  2. For words that follow math immediately without a space (specifically things like $n$th)
  3. In commented out code
@lervag
Copy link
Owner

lervag commented Jan 8, 2022

  1. Inside a magic comment (eg. %!TEX root=main.tex marks 'tex' as misspelled, but I don't want to add that to the dictionary because it's a common typo for text)

Agreed.

  1. For words that follow math immediately without a space (specifically things like $n$th)

I've tried to fix this and I think it should work. Please test.

  1. In commented out code

This is already supported with let g:vimtex_syntax_nospell_comments = 1.

lervag added a commit that referenced this issue Jan 8, 2022
@lervag lervag closed this as completed Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants