mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2025-10-21 20:10:41 +00:00
Update 2025-05-03 Update 2025-05-05 Update 2025-05-07 Update 2025-05-09 chore: use mini.nvim Update 2025-05-12 Update 2025-05-14 Update 2025-05-16 Update 2025-05-17 Update 2025-05-20 Update 2025-05-21 Update 2025-05-23 Update 2025-05-25 Update 2025-05-30
43 lines
973 B
Lua
43 lines
973 B
Lua
return {
|
|
"ravibrock/spellwarn.nvim",
|
|
event = "VeryLazy",
|
|
cmd = { "Spellwarn" },
|
|
keys = {
|
|
{
|
|
|
|
"<leader>os",
|
|
function()
|
|
vim.cmd.Spellwarn("toggle")
|
|
end,
|
|
desc = "Spellwarn 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
|
|
},
|
|
}
|