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

Skip minted environments in LaTeX #463

Closed
EmeraldSnorlax opened this issue Nov 17, 2021 · 3 comments
Closed

Skip minted environments in LaTeX #463

EmeraldSnorlax opened this issue Nov 17, 2021 · 3 comments
Assignees
Labels
1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature 3-fixed Issue resolution: Issue has been fixed on the develop branch
Milestone

Comments

@EmeraldSnorlax
Copy link

EmeraldSnorlax commented Nov 17, 2021

Note: Per the contribution guidelines, deleting parts of the template or not filling in vital information may result in the issue to be immediately closed as invalid.

Is your feature request related to a problem? Please describe.
When pasting inline code into the document, (usually with the package minted), LTex gets very angry and causes a load of grammar / spelling errors to be flagged. It creates so much noise that finding actual errors becomes near impossible.

Describe the solution you'd like
Not checking for spelling inside codeblocks, allowing sections / scopes to be ignored by LTex, perhaps by editing the settings.

Or maybe a system similar to ESLint's /* eslint-disable */.

Describe alternatives you've considered
Not pasting inline code?

Additional context
image
this is very painful to mentally filter

@EmeraldSnorlax EmeraldSnorlax added the 1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature label Nov 17, 2021
@valentjn valentjn changed the title feature request: do not check codeblocks / code Skip minted environments in LaTeX Nov 17, 2021
@valentjn
Copy link
Owner

LTEX already skips code blocks by default, but only lstlisting and verbatim environments. minted environments should be easy to add to the default list.

In the meantime, you can do this manually by setting ltex.latex.environments to {"minted": "ignore"}.

Also, LTEX already features support for magic comments to skip some parts of documents. Read the docs for more info.

@valentjn valentjn self-assigned this Nov 17, 2021
@valentjn valentjn added this to LTeX Nov 17, 2021
@valentjn valentjn moved this to ✋ To Do in LTeX Nov 17, 2021
@valentjn valentjn moved this from ✋ To Do to ⌛ In Progress in LTeX Nov 17, 2021
Repository owner moved this from ⌛ In Progress to 🎉 Done in LTeX Nov 17, 2021
@valentjn valentjn added the 3-fixed Issue resolution: Issue has been fixed on the develop branch label Nov 17, 2021
@github-actions
Copy link

This issue is now fixed on develop. The fix will be included in the next release of LTEX.

If you don't want to wait, you can try out the nightly pre-release tomorrow. Nightly pre-releases are published every morning at around 4am UTC.

@valentjn valentjn added this to the 13.1.0 milestone Nov 17, 2021
@valentjn
Copy link
Owner

Fix released in 13.1.0.

me-johnomar added a commit to me-johnomar/ltex-ls that referenced this issue Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature 3-fixed Issue resolution: Issue has been fixed on the develop branch
Projects
Archived in project
Development

No branches or pull requests

2 participants