aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-06-01 08:40:40 +0000
committerBlaž Hrastnik2021-06-01 08:55:11 +0000
commitc2e6b9f506fddec15e48bd06cf712aef2bf53e3c (patch)
treec413901e9e6d84f6dead0badc3a8283d31a551ef /languages.toml
parent8fd800604334679fa42b6b1fb7b06f92c8c34d1c (diff)
Add typescript support & ts/js indentation queries
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml11
1 files changed, 11 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index 26ad5ddc..87f03d06 100644
--- a/languages.toml
+++ b/languages.toml
@@ -66,6 +66,17 @@ roots = []
indent = { tab-width = 2, unit = " " }
[[language]]
+name = "typescript"
+scope = "source.ts"
+injection-regex = "^(ts|typescript)$"
+file-types = ["ts"]
+roots = []
+# TODO: highlights-jsx, highlights-params
+
+language-server = { command = "typescript-language-server", args = ["--stdio"] }
+indent = { tab-width = 2, unit = " " }
+
+[[language]]
name = "css"
scope = "source.css"
injection-regex = "css"