" Autoload functions for spell checking. " Last Changed: 2021-04-21 " Author: Federico Igne <> " License: This file is placed in the public domain. " Note: the functions takes an `errors` parameter to be compatible with " the hook functionality in vim-grammarous. This parameter is not " currently used. function! dyamon#spell#on(errors) abort " "Turn off" colorscheme colorscheme off " Set spell checking set spell endfunction function! dyamon#spell#off(errors) abort " Reset spell checking set nospell " Reset colorscheme colorscheme gruvbox endfunction function! dyamon#spell#toggle() abort if &spell call dyamon#spell#off([]) else call dyamon#spell#on([]) endif endfunction