16 Commits

Author SHA1 Message Date
Jairo Llopis
190a8d40c7 zed-editor: use mkImpureConfigMerger for mutable settings
Replace the module-local `impureConfigMerger` with
`lib.hm.generators.mkImpureConfigMerger`, keeping the JSON5 reader for
settings that may contain comments.

Behavior is preserved but two rough edges are fixed along the way:

- A corrupted existing file now fails activation loudly instead of
  silently replacing the user's settings with the generated defaults.
- An existing file keeps its permissions and symlink target instead of
  being replaced with a fresh mode-644 file.

Add a test that runs the generated activation snippet with `$DRY_RUN` and
`$VERBOSE` set, covering a dry-run that leaves existing settings
untouched, a live merge on top of preexisting settings, verbose logging,
silent quiet mode, permission preservation, and loud failure on a
corrupted file.

Assisted-by: Goose + GLM 5.3 Flash
2026-10-02 03:07:18 -05:00
Edontin
5b6f573372 zed-editor: fix programs.mcp.servers compatibility
Default args to an empty list on stdio servers as it's a Vec<String>,
and loading the configuration fails if it's missing. This cannot be done
in extraTransforms due to the final filterAttrs.

Remove addType call as ContextServerSettings doesn't use type to
differentiate server types.

Link: 601ecb3ee5/crates/settings_content/src/project.rs (L484)
Link: 601ecb3ee5/crates/project/src/project_settings.rs (L182)
2026-06-13 10:42:15 -05:00
Malik
ebc55fd103 claude-code, codex, antigravity-cli, github-copilot-cli, opencode, vscode, zed-editor: use mcp lib
- use lib.hm.mcp.transformMcpServer for MCP integration
- Update tests to reflect new merged server configuration
2026-06-09 23:03:52 -05:00
Alin
4536603a43 zed-editor: add enableMcpIntegration option
Integrate with the shared MCP module
2026-03-11 22:13:46 -05:00
rsahwe
5bd3589390 zed-editor: fix remote server executable name
The remote server executable in the zed-editor package has a '+stable'
appended at the end now. This uses the remoteServerExecutableName
attribute from the zed-editor package instead of guessing.
2026-02-22 11:33:56 +01:00
Pierre-Yves Landuré
1f34c2c855 zed-editor: options to generate debug.json
Add `mutableUserDebug` and `userDebug` options to generate `debug.json` file.
The options are heavily inspired by `mutableUserTasks` and `userTasks` options implementation.

Closes #8091
2025-11-03 20:24:19 -06:00
musjj
5c54b182ab zed-editor: option to generate immutable settings 2025-10-25 21:30:50 -05:00
Jairo Llopis
13a83d1b65 zed-editor: support tasks (#7493)
Just like other features, they can merge with preexisting JSON5
settings.
2025-07-20 19:14:57 -05:00
Jairo Llopis
b182e64c01 zed-editor: survive if previous files are not JSON5 (#7351) 2025-07-03 07:44:20 -05:00
Jairo Llopis
ff31a4677c fix(zed): support preexisting JSON5 settings (#7317)
Zed uses JSON5 for settings files. JQ doesn't understand that format and
fails if found, when merging with preexisting settings.

Here I add a conversion step that converts JSON5 to JSON before handling
the contents to JQ.

Besides, I changed the arguments in the jq function, so instead of using
`[0]` and `[1]`, we now use `$dynamic` and `$static` respectively. This
should make scripts more readable.

Fixes https://github.com/nix-community/home-manager/issues/7247
Fixes https://github.com/nix-community/home-manager/issues/7226
2025-06-24 15:48:03 -05:00
Jairo Llopis
0ee810c839 zed-editor: respect user interactivity with settings and keymaps (#6993)
Merges frozen config from HM into dirty config.

Fixes https://github.com/nix-community/home-manager/issues/6835
2025-06-05 21:20:23 -05:00
awwpotato
bb8d286649 zed-editor: add themes option (#6832) 2025-04-20 00:29:44 -05:00
Austin Horstman
cba2f9ce95 treewide: reformat nixfmt-rfc-style
Reformat repository using new nixfmt-rfc-style.
2025-04-08 08:50:05 -07:00
Gaetan Lepage
1b4f2a4816 zed-editor: add installRemoteServer option 2025-01-29 11:09:51 +01:00
DaRacci
66c5d8b628 zed-editor: fix always generating settings.json
Makes it so settings.json no longer gets made by ensuring it can be
empty as expected when there are no extensions or userSettings
defined.

PR #6201
2024-12-13 13:34:55 +01:00
libewa
e78cbb2027 zed-editor: add module
Add a simple module for zed-editor, a simple editor written in Rust.
2024-10-17 16:15:20 +02:00