aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/filetype.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins/filetype.lua')
-rw-r--r--lua/plugins/filetype.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua
index e308ac0..7101e4c 100644
--- a/lua/plugins/filetype.lua
+++ b/lua/plugins/filetype.lua
@@ -356,7 +356,7 @@ vis.ftdetect.filetypes = {
},
}
-vis.filetype_detect = function(win)
+vis.events.subscribe(vis.events.WIN_OPEN, function(win)
local name = win.file.name
-- remove ignored suffixes from filename
local sanitizedfn = name
@@ -425,5 +425,5 @@ vis.filetype_detect = function(win)
end
win.syntax = nil
-end
+end)