From 7cc6fccce82d0a5d2483784471e5ba7ce6627ad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Cepl?= Date: Mon, 24 Jul 2023 17:07:57 +0200 Subject: 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" } --- lua/plugins/filetype.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lua') 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$" }, }, -- cgit v1.2.3