From 6374e5039e42326985911e34a15264f4e635b0eb Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 17 Sep 2020 17:04:12 +0200 Subject: filetype: do not match text/plain too early This covers other detection, so make sure to match it in last resort only. --- lua/plugins/filetype.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua/plugins') diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua index 048b35d..e52d722 100644 --- a/lua/plugins/filetype.lua +++ b/lua/plugins/filetype.lua @@ -403,7 +403,8 @@ vis.ftdetect.filetypes = { }, text = { ext = { "%.txt$" }, - mime = { "text/plain" }, + -- Do *not* list mime "text/plain" here, it is covered below, + -- see 'try text lexer as a last resort' }, toml = { ext = { "%.toml$" }, -- cgit v1.2.3