vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 9b4df12b156fd879a6118c8c92ae495e2468d3e1
parent 74f9b827fb8bd25769196a3b8a1d2ed83ec81afc
Author: Ben Hormann <benhormann@users.noreply.github.com>
Date:   Tue,  6 Oct 2020 18:55:30 +0100

filetype: and Node.js module extensions

Node.js uses .mjs and .cjs extensions, both are regular javascript.

Diffstat:
Mlua/plugins/filetype.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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$" },