aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins
diff options
context:
space:
mode:
authorBen Hormann <benhormann@users.noreply.github.com>2020-10-06 18:55:30 +0100
committerBen Hormann <benhormann@users.noreply.github.com>2020-10-06 18:55:30 +0100
commit7e57c8023dd347eac0fce1188a16de276c47e003 (patch)
treeaf3ffdbc7e4e42260a13dafa01081d6679ce9db7 /lua/plugins
parentee461564febb8b2ef30d45051a85c543c5192349 (diff)
downloadvis-7e57c8023dd347eac0fce1188a16de276c47e003.tar.gz
vis-7e57c8023dd347eac0fce1188a16de276c47e003.tar.xz
filetype: and Node.js module extensions
Node.js uses .mjs and .cjs extensions, both are regular javascript.
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/filetype.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua
index 2e16cc0..d2574e5 100644
--- a/lua/plugins/filetype.lua
+++ b/lua/plugins/filetype.lua
@@ -204,7 +204,7 @@ vis.ftdetect.filetypes = {
ext = { "%.bsh$", "%.java$" },
},
javascript = {
- ext = { "%.js$", "%.jsfl$", "%.ts$" },
+ ext = { "%.cjs$", "%.js$", "%.jsfl$", "%.mjs$", "%.ts$" },
},
json = {
ext = { "%.json$" },