return { "ravibrock/spellwarn.nvim", event = "VeryLazy", cmd = { "Spellwarn" }, keys = { { "os", function() vim.cmd.Spellwarn("toggle") end, desc = "[S]pellwarn toggle", }, }, opts = { event = { -- event(s) to refresh diagnostics on "CursorHold", "InsertLeave", "TextChanged", "TextChangedI", "TextChangedP", "TextChangedT", }, ft_config = { -- spellcheck method: "cursor", "iter", or boolean alpha = false, help = false, lazy = false, lspinfo = false, mason = false, }, ft_default = true, -- default option for unspecified filetypes max_file_size = nil, -- maximum file size to check in lines (nil for no limit) severity = { -- severity for each spelling error type (false to disable diagnostics for that type) spellbad = "WARN", spellcap = "HINT", spelllocal = "HINT", spellrare = "INFO", }, prefix = "possible misspelling(s): ", -- prefix for each diagnostic message }, }