Skip to content

Commit e1f932b

Browse files
author
Andrew Ferrier
committed
feat: Add js-like languages
1 parent e2f5ac2 commit e1f932b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lua/debugprint/filetypes.lua

+9
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,16 @@ local shell = {
55
right_var = '}"',
66
}
77

8+
local js = {
9+
left = 'console.log("',
10+
right = '")',
11+
mid_var = '", ',
12+
right_var = ')',
13+
}
14+
815
return {
916
["bash"] = shell,
17+
["javascript"] = js,
1018
["lua"] = {
1119
left = "print('",
1220
right = "')",
@@ -20,6 +28,7 @@ return {
2028
right_var = ")",
2129
},
2230
["sh"] = shell,
31+
["typescript"] = js,
2332
["vim"] = {
2433
left = 'echo "',
2534
right = '"',

0 commit comments

Comments
 (0)