aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgit-bruh <prathamIN@proton.me>2024-04-07 18:33:52 +0530
committergit-bruh <prathamIN@proton.me>2024-04-07 18:33:52 +0530
commit94c7358d6ddf832234c0dfcd62c5762ecac91659 (patch)
treeb43d96392d549942381c9b866f845dcc6f397954
parent6f537f300b0b4d7e4a729e28cce7be9241e829a3 (diff)
downloadvis-94c7358d6ddf832234c0dfcd62c5762ecac91659.tar.gz
vis-94c7358d6ddf832234c0dfcd62c5762ecac91659.tar.xz
plugins/filetype: fix javascript/typescript detection
-rw-r--r--lua/plugins/filetype.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua
index defdc9b..e8a5945 100644
--- 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$" },