zed: modify lsp config
This commit is contained in:
parent
702d5bb71d
commit
417b088a5e
1 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue