vis

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

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

commit 5b3c9475d8535af0c2d16a65eae8159a0835ad74
parent c842e9c187c452eb729c5931ac8fda385a0f9ddc
Author: git-bruh <prathamIN@proton.me>
Date:   Sun,  7 Apr 2024 18:33:52 +0530

plugins/filetype: fix javascript/typescript detection

Diffstat:
Mlua/plugins/filetype.lua | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua @@ -222,7 +222,7 @@ vis.ftdetect.filetypes = { ext = { "%.bsh$", "%.java$" }, }, javascript = { - ext = { "%.cjs$", "%.js$", "%.jsfl$", "%.mjs$", "%.jsx$", "%.ts$", "%.tsx$" }, + ext = { "%.cjs$", "%.js$", "%.jsfl$", "%.mjs$", "%.jsx$" }, }, jq = { ext = { "%.jq$" }, @@ -456,7 +456,7 @@ vis.ftdetect.filetypes = { ext = { "%.toml$" }, }, typescript = { - ext = { "%.ts$" }, + ext = { "%.ts$", "%.tsx$" }, }, typst = { ext = { "%.typ$", "%.typst$" },