mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 08:02:38 +00:00
By default spell checking is enabled for all text, but adding
`contains=@Spell` to syntax rules restricts spell checking to those
syntax rules. See `:help spell-syntax` for full details.
Variable names and headers are far more likely than comments to contain
spelling errors, so only enable spell checking in comments.
Introduced in https://github.com/xuhdev/syntax-dosini.vim/pull/8
cc @tobinjt
closes: vim/vim#15655
c0982f9f79
Co-authored-by: John Tobin <johntobin@johntobin.ie>