aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2023-07-24 17:07:57 +0200
committerRandy Palamar <palamar@ualberta.ca>2023-07-28 09:39:28 -0600
commit7cc6fccce82d0a5d2483784471e5ba7ce6627ad9 (patch)
tree38b6002a0737e2dc4d9d6629535aa9816d1e4127
parent47ac03a911eff0f743d1ee45efc51fc8f68dcbb8 (diff)
downloadvis-7cc6fccce82d0a5d2483784471e5ba7ce6627ad9.tar.gz
vis-7cc6fccce82d0a5d2483784471e5ba7ce6627ad9.tar.xz
Introduce new `mail` file type.
Aside from the possibility of future syntax highlighting (similar to https://github.com/vim/vim/blob/master/runtime/syntax/mail.vim in Vim). After objections on the list, I have decided not to include the conversion and user has to introduce it in their visrc.lua: vis.ftdetect.filetypes.mail.cmd = { "x/\r/ d" }
-rw-r--r--lua/plugins/filetype.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua
index 4203604..a5ab056 100644
--- a/lua/plugins/filetype.lua
+++ b/lua/plugins/filetype.lua
@@ -123,6 +123,9 @@ vis.ftdetect.filetypes = {
elm = {
ext = { "%.elm$" },
},
+ mail = {
+ ext = { "%.eml$" },
+ },
erlang = {
ext = { "%.erl$", "%.hrl$" },
},