From 8ca72451298f60e6440ac48293052c5e82bd8ec6 Mon Sep 17 00:00:00 2001 From: Rubin Bhandari Date: Fri, 7 Jun 2024 02:23:24 +0545 Subject: [PATCH] feat(autocmd): enable spell for typst and text file (#3505) --- lua/lazyvim/config/autocmds.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/config/autocmds.lua b/lua/lazyvim/config/autocmds.lua index b2135870..5b519797 100644 --- a/lua/lazyvim/config/autocmds.lua +++ b/lua/lazyvim/config/autocmds.lua @@ -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