feat(autocmd): enable spell for typst and text file (#3505)

This commit is contained in:
Rubin Bhandari
2024-06-07 02:23:24 +05:45
committed by GitHub
parent 276b8032be
commit 8ca7245129

View File

@ -85,7 +85,7 @@ vim.api.nvim_create_autocmd("FileType", {
-- wrap and check for spell in text filetypes
vim.api.nvim_create_autocmd("FileType", {
group = augroup("wrap_spell"),
pattern = { "gitcommit", "markdown" },
pattern = { "*.txt", "*.tex", "*.typ", "gitcommit", "markdown" },
callback = function()
vim.opt_local.wrap = true
vim.opt_local.spell = true