diff options
| author | Christian Hesse <mail@eworm.de> | 2020-09-17 17:04:12 +0200 |
|---|---|---|
| committer | Christian Hesse <mail@eworm.de> | 2020-09-17 17:04:12 +0200 |
| commit | 6374e5039e42326985911e34a15264f4e635b0eb (patch) | |
| tree | dc96fcf325e58133e5821894f832f134abb80f11 /lua/plugins | |
| parent | 2290224c844775d446fc8aaf3a98c0149d935875 (diff) | |
| download | vis-6374e5039e42326985911e34a15264f4e635b0eb.tar.gz vis-6374e5039e42326985911e34a15264f4e635b0eb.tar.xz | |
filetype: do not match text/plain too early
This covers other detection, so make sure to match it in
last resort only.
Diffstat (limited to 'lua/plugins')
| -rw-r--r-- | lua/plugins/filetype.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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$" }, |
