diff --git a/modules/capabilities/helix.nix b/modules/capabilities/helix.nix index 2419da1..c65c21f 100644 --- a/modules/capabilities/helix.nix +++ b/modules/capabilities/helix.nix @@ -44,6 +44,8 @@ package = inputs.helix.packages.${pkgs.stdenv.hostPlatform.system}.default; extraPackages = with pkgs; [ svelteLanguageServer + tailwindcss-language-server + nixd nixfmt oxfmt @@ -91,13 +93,18 @@ { name = "svelte"; formatter = { - command = "oxfmt"; - args = [ "--stdin-filepath=%{buffer_name}" ]; + command = "${pkgs.coreutils}/bin/env"; + args = [ + "NODE_PATH=%{workspace_directory}/node_modules" + "oxfmt" + "--stdin-filepath=%{buffer_name}" + ]; }; auto-format = true; language-servers = [ "scls" "svelteserver" + "tailwindcss-ls" ]; } {