aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2020-09-17 17:04:12 +0200
committerChristian Hesse <mail@eworm.de>2020-09-17 17:04:12 +0200
commit6374e5039e42326985911e34a15264f4e635b0eb (patch)
treedc96fcf325e58133e5821894f832f134abb80f11 /lua/plugins
parent2290224c844775d446fc8aaf3a98c0149d935875 (diff)
downloadvis-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.lua3
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$" },