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

Turn off spell check for package and import declarations #117

Open
normenmueller opened this issue Dec 16, 2015 · 2 comments
Open

Turn off spell check for package and import declarations #117

normenmueller opened this issue Dec 16, 2015 · 2 comments

Comments

@normenmueller
Copy link
Contributor

Is there an option to turn of spell check for package and import declarations?

I identified those lines of code

syn keyword scalaExternal package import
hi link scalaExternal Include

but unfortunately don't know how to add @NoSpell or something similar.

@ches
Copy link
Collaborator

ches commented Dec 21, 2015

I think we can fix this plus some other annoying spellchecks like function parameter names by just adding syn spell notoplevel to the plugin's syntax definition, with no adverse effects that I see yet.

But the interaction between how Vim interprets "top-level" for syntax, how vim-scala's syntax definition distinguishes top-level Scala versus block constructs, and how all this works with embedding e.g. in Markdown all gets rather mystical… So I'm never entirely confident about it 😇

@normenmueller
Copy link
Contributor Author

@ches I'm willing to beta test! Unfortunately can't extend vim-scala by my own as I'm not used to "Vim programming". I'm just a Vim user ;-)

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