(neovim) spell checker only for gitcommits
This commit is contained in:
parent
5b93cdb987
commit
cf95a8a11e
1 changed files with 1 additions and 2 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue