-- simple spell check toggle function SpellToggle() if vim.o.spell == nil or vim.o.spell then vim.o.spell = false else vim.o.spell = true end end