feat(ide): declaratively configure Zed editor, themes, and language servers
- Integrate Zed configuration (`settings.json`) and custom theme definitions into the repository. - Declare essential Language Servers (rust-analyzer, pyright, nil, nixd, jdtls, typescript-language-server) as project dependencies in `graphical.nix`. - Map configuration files to `~/.config/zed/` via Home Manager to ensure a consistent development environment across hosts.
This commit is contained in:
1 parent
274007ffea
commit
d5b81699c0
3 files changed
+1622
No files matched your search
@@ -0,0 +1,87 @@
|
||||
// Zed settings
|
||||
//
|
||||
// For information on how to configure Zed, see the Zed
|
||||
// documentation: https://zed.dev/docs/configuring-zed
|
||||
//
|
||||
// To see all of Zed's default settings without changing your
|
||||
// custom settings, run `zed: open default settings` from the
|
||||
// command palette (cmd-shift-p / ctrl-shift-p)
|
||||
{
|
||||
"proxy": "",
|
||||
"disable_ai": true,
|
||||
"project_panel": {
|
||||
"hide_gitignore": false,
|
||||
"dock": "left"
|
||||
},
|
||||
"terminal": {
|
||||
"shell": "system"
|
||||
},
|
||||
"prettier": {
|
||||
"allowed": true
|
||||
},
|
||||
"document_symbols": "on",
|
||||
"document_folding_ranges": "on",
|
||||
"semantic_tokens": "combined",
|
||||
"unnecessary_code_fade": 0.3,
|
||||
"hide_mouse": "on_typing",
|
||||
"cursor_shape": "underline",
|
||||
"buffer_font_family": "RobotoMono Nerd Font",
|
||||
"cli_default_open_behavior": "new_window",
|
||||
"use_system_prompts": false,
|
||||
"on_last_window_closed": "platform_default",
|
||||
"when_closing_with_no_tabs": "platform_default",
|
||||
"session": {
|
||||
"trust_all_worktrees": true
|
||||
},
|
||||
"vim_mode": true,
|
||||
"icon_theme": "Zed (Default)",
|
||||
"ui_font_size": 16,
|
||||
"buffer_font_size": 12.0,
|
||||
"theme": {
|
||||
"mode": "light",
|
||||
"light": "DankShell Light Transparent",
|
||||
"dark": "Gruvbox Dark Hard"
|
||||
},
|
||||
"lsp": {
|
||||
"rust-analyzer": {
|
||||
"binary": {
|
||||
"path_lookup": true
|
||||
}
|
||||
},
|
||||
"pyright": {
|
||||
"binary": {
|
||||
"path_lookup": true
|
||||
}
|
||||
},
|
||||
"basedpyright": {
|
||||
"binary": {
|
||||
"path_lookup": true
|
||||
}
|
||||
},
|
||||
"nil": {
|
||||
"binary": {
|
||||
"path_lookup": true
|
||||
}
|
||||
},
|
||||
"nixd": {
|
||||
"binary": {
|
||||
"path_lookup": true
|
||||
}
|
||||
},
|
||||
"jdtls": {
|
||||
"binary": {
|
||||
"path_lookup": true
|
||||
}
|
||||
},
|
||||
"typescript-language-server": {
|
||||
"binary": {
|
||||
"path_lookup": true
|
||||
}
|
||||
},
|
||||
"vtsls": {
|
||||
"binary": {
|
||||
"path_lookup": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -9,6 +9,14 @@
|
||||
home.packages = with pkgs; [
|
||||
inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.default # Modern browser build
|
||||
zed-editor # GPU-accelerated desktop text editor
|
||||
|
||||
# Language Servers for Zed (and general dev use)
|
||||
rust-analyzer
|
||||
pyright
|
||||
nil
|
||||
nixd
|
||||
jdt-language-server
|
||||
typescript-language-server
|
||||
];
|
||||
|
||||
# Firefox configuration
|
||||
@@ -71,6 +79,10 @@
|
||||
];
|
||||
};
|
||||
|
||||
# Declarative configuration files for Zed editor
|
||||
home.file.".config/zed/settings.json".source = ./config/zed/settings.json;
|
||||
home.file.".config/zed/themes".source = ./config/zed/themes;
|
||||
|
||||
# ⚙️ Systemd user session targets for window managers
|
||||
# This target allows user services (like background daemons, screenshot helpers) to bind
|
||||
# to the graphical workspace startup cycle correctly.
|
||||
|
||||
Reference in new issue
Block a user