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; + }; }; }; };