diff options
| author | Ben Hormann <benhormann@users.noreply.github.com> | 2020-10-06 18:55:30 +0100 |
|---|---|---|
| committer | Ben Hormann <benhormann@users.noreply.github.com> | 2020-10-06 18:55:30 +0100 |
| commit | 7e57c8023dd347eac0fce1188a16de276c47e003 (patch) | |
| tree | af3ffdbc7e4e42260a13dafa01081d6679ce9db7 /lua | |
| parent | ee461564febb8b2ef30d45051a85c543c5192349 (diff) | |
| download | vis-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')
| -rw-r--r-- | lua/plugins/filetype.lua | 2 |
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$" }, |
