vim-scala
vim-scala copied to clipboard
Turn off spell check for package and import declarations
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.
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 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 ;-)