1
1
Fork 0

zed: modify lsp config

This commit is contained in:
Myned 2025-03-19 10:40:26 -05:00
parent 702d5bb71d
commit 417b088a5e
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: C7224454F7881A34

View file

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