feat: add autocmds config

This commit is contained in:
Devin Lumley 2024-01-10 10:22:30 -08:00
parent 9dc1ca27b3
commit 3362873c0a
3 changed files with 21 additions and 0 deletions

7
lua/autocmds.lua Normal file
View file

@ -0,0 +1,7 @@
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = { "gitcommit", "markdown", "md", "mdx" },
callback = function()
vim.opt_local.spell = true
vim.opt.wrap = true
end
})