vim-scala icon indicating copy to clipboard operation
vim-scala copied to clipboard

Turn off spell check for package and import declarations

Open normenmueller opened this issue 9 years ago • 2 comments

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.

normenmueller avatar Dec 16 '15 14:12 normenmueller

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 :innocent:

ches avatar Dec 21 '15 08:12 ches

@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 ;-)

normenmueller avatar Dec 21 '15 21:12 normenmueller