vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit cd14bf44d844b4481be2b64d2f77b55e37096b84
parent 0ee7d823dc01acde3e057e06b6044e218f725fca
Author: Christian Hesse <mail@eworm.de>
Date:   Thu, 17 Sep 2020 17:04:12 +0200

filetype: do not match text/plain too early

This covers other detection, so make sure to match it in
last resort only.

Diffstat:
Mlua/plugins/filetype.lua | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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$" },