diff --git a/dot_config/helix/languages.toml b/dot_config/helix/languages.toml index 93d5c4d..e753a85 100644 --- a/dot_config/helix/languages.toml +++ b/dot_config/helix/languages.toml @@ -22,3 +22,16 @@ args = ["server", "-m", "stream"] [[grammar]] name = "graphql" source = {git = "https://github.com/bkegley/tree-sitter-graphql", rev = "5e66e961eee421786bdda8495ed1db045e06b5fe"} + +[[language]] +name = "typescript" +scope = "source.ts" +injection-regex = "(ts|typescript)" +file-types = ["ts", "mts", "cts"] +language-id = "typescript" +shebangs = ["deno", "ts-node"] +language-servers = [ "typescript-language-server" ] +indent = { tab-width = 2, unit = " " } +formatter = { command = 'prettier', args = ["--parser", "typescript"] } +auto-format = true +