From 417b088a5e3e92e7183175767630326bf1a160c8 Mon Sep 17 00:00:00 2001 From: Myned <dev@bjork.tech> Date: Wed, 19 Mar 2025 10:40:26 -0500 Subject: [PATCH] zed: modify lsp config --- options/custom/programs/zed/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/options/custom/programs/zed/default.nix b/options/custom/programs/zed/default.nix index 8f6c667..7e212f6 100644 --- a/options/custom/programs/zed/default.nix +++ b/options/custom/programs/zed/default.nix @@ -251,15 +251,24 @@ in { # Language-specific # https://zed.dev/docs/configuring-languages languages = { + # https://zed.dev/docs/languages/markdown + Markdown = { + format_on_save = "on"; + }; + Nix = { - formatter.external.command = "alejandra"; + # https://github.com/oxalica/nil + # https://github.com/nix-community/nixd language_servers = ["nil" "!nixd"]; }; }; + # Language servers # https://zed.dev/docs/configuring-languages#configuring-language-servers lsp = { + # https://github.com/oxalica/nil/blob/main/docs/configuration.md nil.initialization_options = { + formatting.command = ["alejandra"]; nix.flake.autoArchive = true; }; };