aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2022-01-29 13:43:06 -0600
committerGitHub <noreply@github.com>2022-01-29 12:43:06 -0700
commit4458413bc02a1308bd722611227664033916d6f7 (patch)
treed641fe62c6055dca7e84b2c38c03fb67441c94dd
parente0242c4a937be5b5a7eea21bfe780fb49216e2a2 (diff)
downloadrneovim-4458413bc02a1308bd722611227664033916d6f7.tar.gz
rneovim-4458413bc02a1308bd722611227664033916d6f7.tar.bz2
rneovim-4458413bc02a1308bd722611227664033916d6f7.zip
feat(filetype): convert patterns for mail buffers (#17238)
-rw-r--r--runtime/lua/vim/filetype.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
index 82ef2f6263..adc838578d 100644
--- a/runtime/lua/vim/filetype.lua
+++ b/runtime/lua/vim/filetype.lua
@@ -1389,6 +1389,16 @@ local pattern = {
["zlog.*"] = starsetf('zsh'),
["zsh.*"] = starsetf('zsh'),
["ae%d+%.txt"] = 'mail',
+ ["snd%.%d+"] = "mail",
+ ["%.letter%.%d+"] = "mail",
+ ["%.article%.%d+"] = "mail",
+ ["pico%.%d+"] = "mail",
+ ["mutt%-.*%-%w+"] = "mail",
+ ["neomutt%-.*%-%w+"] = "mail",
+ ["muttng%-.*%-%w+"] = "mail",
+ ["mutt" .. string.rep("[%w_-]", 6)] = "mail",
+ ["neomutt" .. string.rep("[%w_-]", 6)] = "mail",
+ ["/tmp/SLRN[0-9A-Z.]+"] = "mail",
["[a-zA-Z0-9].*Dict"] = function() vim.fn["dist#ft#FTfoam"]() end,
["[a-zA-Z0-9].*Dict%..*"] = function() vim.fn["dist#ft#FTfoam"]() end,
["[a-zA-Z].*Properties"] = function() vim.fn["dist#ft#FTfoam"]() end,