(neovim) spell checker only for gitcommits

This commit is contained in:
Bartek Stalewski 2025-09-12 01:01:19 +02:00
parent 5b93cdb987
commit cf95a8a11e
No known key found for this signature in database

View file

@ -7,9 +7,8 @@ vim.api.nvim_command("autocmd VimResized * wincmd =")
-- enable spell for text files
vim.api.nvim_create_autocmd("FileType", {
group = vim.api.nvim_create_augroup("spell", { clear = true }),
pattern = { "text", "plaintex", "typst", "gitcommit", "markdown" },
pattern = { "gitcommit" },
callback = function()
-- vim.api.nvim_set_hl(0, "SpellBad", { bg = "#770000", fg = "#ffffff" })
vim.opt_local.spell = true
end,
})