From ac6e0d98b8283a89e818639a5977563edbd35840 Mon Sep 17 00:00:00 2001 From: GarandPLG Date: Mon, 20 Oct 2025 11:10:05 +0200 Subject: [PATCH] biome w zed --- modules/home/zed.nix | 57 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/modules/home/zed.nix b/modules/home/zed.nix index c857ec4..77dfa2b 100644 --- a/modules/home/zed.nix +++ b/modules/home/zed.nix @@ -23,6 +23,7 @@ "json5" "html-jinja" "deputy" + "biome" ]; extraPackages = with pkgs; [ biome ]; @@ -55,6 +56,62 @@ YAML = { tab_size = 2; }; + JavaScript = { + formatter.language_server.name = "biome"; + code_actions_on_format = { + "source.fixAll.biome" = true; + "source.organizeImports.biome" = true; + }; + tab_size = 2; + }; + TypeScript = { + formatter.language_server.name = "biome"; + code_actions_on_format = { + "source.fixAll.biome" = true; + "source.organizeImports.biome" = true; + }; + tab_size = 2; + }; + Astro = { + formatter.language_server.name = "biome"; + code_actions_on_format = { + "source.fixAll.biome" = true; + "source.organizeImports.biome" = true; + }; + tab_size = 2; + }; + "Vue.js" = { + formatter.language_server.name = "biome"; + code_actions_on_format = { + "source.fixAll.biome" = true; + "source.organizeImports.biome" = true; + }; + tab_size = 2; + }; + JSON = { + formatter.language_server.name = "biome"; + code_actions_on_format = { + "source.fixAll.biome" = true; + "source.organizeImports.biome" = true; + }; + tab_size = 2; + }; + JSONC = { + formatter.language_server.name = "biome"; + code_actions_on_format = { + "source.fixAll.biome" = true; + "source.organizeImports.biome" = true; + }; + tab_size = 2; + }; + CSS = { + formatter.language_server.name = "biome"; + code_actions_on_format = { + "source.fixAll.biome" = true; + "source.organizeImports.biome" = true; + }; + tab_size = 2; + }; }; }; };