From 508ea2eb43b7be943848fdca338c45a5349a865b Mon Sep 17 00:00:00 2001 From: kjuulh Date: Mon, 12 Feb 2024 22:43:30 +0100 Subject: [PATCH] Update .config/helix/languages.toml --- dot_config/helix/languages.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dot_config/helix/languages.toml b/dot_config/helix/languages.toml index e753a85..5264b50 100644 --- a/dot_config/helix/languages.toml +++ b/dot_config/helix/languages.toml @@ -35,3 +35,14 @@ indent = { tab-width = 2, unit = " " } formatter = { command = 'prettier', args = ["--parser", "typescript"] } auto-format = true +[[language]] +name = "tsx" +scope = "source.tsx" +injection-regex = "(tsx)" # |typescript +language-id = "typescriptreact" +file-types = ["tsx"] +language-servers = [ "typescript-language-server" ] +indent = { tab-width = 2, unit = " " } +formatter = { command = 'prettier', args = ["--parser", "typescript-react"] } +auto-format = true +