From 09cc1b6c4fb160505f95eb6116eb8bd582c8858c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= <dev@felschr.com> Date: Sun, 18 May 2025 15:13:18 +0200 Subject: [PATCH] feat(helix): improve config --- home/editors/helix/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/home/editors/helix/default.nix b/home/editors/helix/default.nix index f5cac7e..68ca97a 100644 --- a/home/editors/helix/default.nix +++ b/home/editors/helix/default.nix @@ -26,7 +26,8 @@ in name = "javascript"; language-servers = typescriptLanguageServers; # TODO also configure eslint for diagnostics - # formatter.command = "eslint_d --fix"; + # formatter.command = ["eslint_d"]; + # formatter.args = ["--fix"]; formatter = prettier "typescript"; auto-format = true; } @@ -54,7 +55,7 @@ in } { name = "nix"; - # `nix fmt` does not support stdin + # HINT `nix fmt` is a bit slow formatter.command = "nixfmt"; language-servers = [ "nixd" @@ -69,7 +70,11 @@ in } { name = "protobuf"; - formatter.command = "buf format -w"; + formatter.command = "buf"; + formatter.args = [ + "format" + "-w" + ]; language-servers = [ "bufls" "buf-lint"