From 5d644f095917def5a21700eda2de7fa6249d6825 Mon Sep 17 00:00:00 2001 From: Toast Date: Wed, 17 Apr 2024 11:27:35 +0200 Subject: [PATCH] Common/helix: use home-manager languages option --- roles/common/programs/helix.nix | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/roles/common/programs/helix.nix b/roles/common/programs/helix.nix index c5ea603..38e7d22 100644 --- a/roles/common/programs/helix.nix +++ b/roles/common/programs/helix.nix @@ -25,17 +25,14 @@ indent-guides.render = true; }; }; - }; - # The builtin languages options have issues - # https://github.com/nix-community/home-manager/issues/3299 - xdg.configFile."helixLanguages" = { - target = "helix/languages.toml"; - text = '' - [language-server.nil] - config.nil.formatting.command = [ "nixpkgs-fmt" ] - [[language]] - name = "nix" - ''; + languages = { + language = [ + { + name = "nix"; + formatter.command = "nixpkgs-fmt"; + } + ]; + }; }; }; }