From d0baefc82e205a2304546cfc03127a4b09f058c5 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sat, 19 Apr 2025 19:03:41 -0500 Subject: [PATCH 1/3] feat: Add R extension to Zed --- programs/zed.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/zed.nix b/programs/zed.nix index e3cbb0f..355d764 100644 --- a/programs/zed.nix +++ b/programs/zed.nix @@ -12,6 +12,7 @@ "latex" "macos-classic" "nix" + "r" "toml" "xml" ]; From 868d13a9fb4e4a62ba11b5f22f78fc2682af7ba0 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sat, 19 Apr 2025 19:05:04 -0500 Subject: [PATCH 2/3] add Gnu Gzip b/c zcat isn't broken in it zcat is broken on MacOS so it doesn't function the same as on Gnu systems. Add the Gnu variant to packages just like just about every other coreutil at this point. --- pkgs.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs.nix b/pkgs.nix index ccc1b52..90cab6b 100644 --- a/pkgs.nix +++ b/pkgs.nix @@ -10,6 +10,7 @@ git-absorb gnugrep gnused + gzip htop jq julia-bin From e1828378aa288f1b3e40ada7e1409f4c8ac0dcc2 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sat, 19 Apr 2025 19:06:26 -0500 Subject: [PATCH 3/3] Use external JuliaFormatter in Zed config Zed and the Julia LSP seem to be arguing a lot lately, and that breaks my blue-styled code. Use the JuliaFormatter as an external command to get code formatting on save even when the Julia LSP crashes. --- programs/zed.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/programs/zed.nix b/programs/zed.nix index 355d764..02c8da9 100644 --- a/programs/zed.nix +++ b/programs/zed.nix @@ -28,6 +28,17 @@ buffer_font_size = 11; features = { edit_prediction_provider = "zed"; }; languages = { + Julia = { + formatter = { + external = { + command = "julia"; + arguments = [ + "-e" + "using JuliaFormatter; print(format_text(String(read(stdin))));" + ]; + }; + }; + }; Nix = { formatter = { external = { command = "nixfmt"; }; }; }; }; preview_tabs = { enabled = false; };