aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/plugins/filetype.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua
index 5aebdcc..5b6c2ab 100644
--- a/lua/plugins/filetype.lua
+++ b/lua/plugins/filetype.lua
@@ -250,6 +250,9 @@ vis.ftdetect.filetypes = {
makefile = {
ext = { "%.iface$", "%.mak$", "%.mk$", "GNUmakefile", "makefile", "Makefile" },
mime = { "text/x-makefile" },
+ detect = function(_, data)
+ return data:match("^#!/usr/bin/make")
+ end
},
man = {
ext = {