From f4632a6beaeddca09cd3bce842aca89dc70d2ee6 Mon Sep 17 00:00:00 2001 From: twoneis Date: Thu, 30 May 2024 16:59:30 +0200 Subject: [PATCH] tab width for c --- modules/home/utils/helix-languages.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/home/utils/helix-languages.nix b/modules/home/utils/helix-languages.nix index b7f6196..5c75437 100644 --- a/modules/home/utils/helix-languages.nix +++ b/modules/home/utils/helix-languages.nix @@ -13,5 +13,19 @@ indent = { tab-width = 8; unit = " "; }; roots = []; file-types = ["S"]; + } { + name = "json"; + auto-format = true; + formatter = { command = "prettier"; args = ["--parser" "json"]; }; + } { + name = "jsonc"; + auto-format = true; + formatter.command = "prettier"; + formatter.args = ["--parser" "jsonc"]; + } { + name = "c"; + auto-format = true; + formatter = { command = "clang-format"; args = ["-style=file"]; }; + indent = { tab-width = 8; unit = " "; }; }]; }