add settings for zed

This commit is contained in:
ulic-youthlic 2025-04-29 00:39:36 +08:00
parent e44894c666
commit d64679dbfe
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
2 changed files with 30 additions and 9 deletions

11
.zed/settings.json Normal file
View file

@ -0,0 +1,11 @@
{
"languages": {
"Nix": {
"formatter": {
"external": {
"command": "alejandra"
}
}
}
}
}

View file

@ -16,15 +16,17 @@ in {
programs.zed-editor = { programs.zed-editor = {
enable = true; enable = true;
extensions = [ extensions = [
"Nix" "nix"
"HTML" "html"
"Java" "java"
"Git Firely" "git-firely"
"Make" "make"
"Deno" "deno"
"Java with Eclipse JDTLS" "java-eclipse-jdtlS"
"NeoCMake" "neocMake"
"Typst" "typst"
"toml"
"markdown-oxide"
]; ];
extraPackages = with pkgs; [ extraPackages = with pkgs; [
nixd nixd
@ -32,10 +34,18 @@ in {
neocmakelsp neocmakelsp
deno deno
jdt-language-server jdt-language-server
taplo
alejandra
markdown-oxide
]; ];
userSettings = { userSettings = {
soft_wrap = "editor_width";
autosave = "on_focus_change"; autosave = "on_focus_change";
auto_update = false; auto_update = false;
calls = {
mute_on_join = true;
share_on_join = false;
};
"format_on_save" = "off"; "format_on_save" = "off";
ui_font_size = 20; ui_font_size = 20;
buffer_font_size = 20; buffer_font_size = 20;