(vim) change SpellBad color

This commit is contained in:
Bartek Stalewski 2025-07-17 16:03:21 +02:00
parent f431f2bd13
commit ff2bcb6bb5
No known key found for this signature in database

View file

@ -9,7 +9,6 @@ vim.api.nvim_create_autocmd("FileType", {
group = vim.api.nvim_create_augroup("spell", { clear = true }),
pattern = { "text", "plaintex", "typst", "gitcommit", "markdown" },
callback = function()
vim.api.nvim_set_hl(0, "SpellBad", { bg = "#770000", fg = "#ffffff" })
vim.opt_local.spell = true
end,
})
@ -20,7 +19,6 @@ vim.api.nvim_create_autocmd({ "BufReadPre" }, {
vim.api.nvim_set_hl(0, "ColorColumn", { bg = "#770000" })
vim.api.nvim_set_hl(0, "DiffChange", { bg = "NONE", fg = "#e7c547" })
vim.api.nvim_set_hl(0, "DiffText", { bg = "NONE", fg = "#ff8700" })
vim.api.nvim_set_hl(0, "SpellBad", { bg = "#770000", fg = "#ffffff" })
vim.api.nvim_set_hl(0, "Visual", { bg = "#0094d8", fg = "#ffffff" })
end,
})