feat: Adds nvim autocmd to detect neomutt compose emails and set filetype to markdown.

This commit is contained in:
2025-10-31 15:50:16 -04:00
parent 654c61a460
commit 737f9bfb2c

View File

@@ -38,6 +38,16 @@ vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
-- end,
-- })
-- Set neomutt compose email file types to markdown.
vim.api.nvim_create_autocmd("BufRead", {
pattern = "neomutt*",
callback = function()
vim.cmd.setlocal("filetype=markdown")
vim.cmd.setlocal("textwidth=120")
vim.cmd.setlocal("spell spelllang=en_us")
end
})
-- Go
createCmd("BufWritePre", {
pattern = "*.go",