mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
feat: Adds nvim autocmd to detect neomutt compose emails and set filetype to markdown.
This commit is contained in:
10
env/.config/nvim/lua/config/autocmds.lua
vendored
10
env/.config/nvim/lua/config/autocmds.lua
vendored
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user