From 7367ea8a14c7413e5e8e2cd16edb4a05690ef782 Mon Sep 17 00:00:00 2001 From: Michiel van den Heuvel Date: Mon, 18 Sep 2023 16:41:51 +0200 Subject: [PATCH] filetype: add psm1 and search for xml using mime type --- lua/plugins/filetype.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua index 074b7f208..fd8f3d398 100644 --- a/lua/plugins/filetype.lua +++ b/lua/plugins/filetype.lua @@ -331,7 +331,7 @@ vis.ftdetect.filetypes = { ext = { "%.pony$" }, }, powershell = { - ext = { "%.ps1$" }, + ext = { "%.ps1$", "%.psm1$" }, }, prolog = { ext = { "%.pl$", "%.pro$", "%.prolog$" }, @@ -481,6 +481,7 @@ vis.ftdetect.filetypes = { "%.dtd$", "%.glif$", "%.plist$", "%.svg$", "%.xml$", "%.xsd$", "%.xsl$", "%.xslt$", "%.xul$" }, + mime = { "text/xml" }, }, xtend = { ext = {"%.xtend$" },