From 54f3e1bfb5a0843605207b2003c7d42ac1e4f2fc Mon Sep 17 00:00:00 2001 From: Roel de Cort Date: Tue, 28 May 2024 22:34:02 +0200 Subject: [PATCH] add bicep (not really working yet) --- config/plugins/lsp/conform.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/config/plugins/lsp/conform.nix b/config/plugins/lsp/conform.nix index fa9d051..206b3ee 100644 --- a/config/plugins/lsp/conform.nix +++ b/config/plugins/lsp/conform.nix @@ -74,10 +74,6 @@ return { lsp_fallback = true } end ''; - #formatOnSave = { - # lspFallback = true; - # timeoutMs = 500; - #}; notifyOnError = true; formattersByFt = { html = [ @@ -123,6 +119,7 @@ ] ]; terraform = ["terraform_fmt"]; + bicep = ["bicep"]; bash = [ "shellcheck" "shellharden" @@ -131,6 +128,7 @@ json = ["jq"]; "_" = ["trim_whitespace"]; }; + formatters = { black = { command = "${lib.getExe pkgs.black}"; @@ -159,6 +157,9 @@ shellharden = { command = "${lib.getExe pkgs.shellharden}"; }; + bicep = { + command = "${lib.getExe pkgs.bicep}"; + }; #yamlfmt = { # command = "${lib.getExe pkgs.yamlfmt}"; #};