zed: basic config

This commit is contained in:
Veneficium 2024-11-30 23:25:59 +01:00
parent d8174071fc
commit 90eb45beb0
2 changed files with 49 additions and 1 deletions

View file

@ -1 +1,48 @@
{}
{
"telemetry": {
"diagnostics": false,
"metrics": false
},
"auto_update": false,
"project_panel": {
"dock": "right"
},
"terminal": {
"font_family": "FiraCode Nerd Font Mono",
"env": {
"TERM": "xterm-256color"
}
},
"features": {
"inline_completion_provider": "none"
},
"assistant": {
"enabled": false,
"version": "2"
},
"lsp": {
"rust-analyzer": {
"binary": {
"path": "/home/fedfer/.nix-profile/bin/rust-analyzer"
}
},
"nixd": {
"formatting": {
"command": ["nixfmt"]
},
"options": {
"home-manager": {
"expr": "(builtins.getFlake \"/home/fedfer/Documents/sys-config\").homeConfigurations.fedfer.options"
},
"nixos": {
"expr": "(builtins.getFlake \"/home/fedfer/Documents/sys-config\").nixosConfigurations.fedfer-main-laptop-nixos.options"
}
}
}
},
"languages": {
"Nix": {
"language_servers": ["nixd", "!nil"]
}
}
}

View file

@ -7,6 +7,7 @@
config = lib.mkIf config.settings.programs.zed.enable {
programs.zed-editor = {
enable = true;
extensions = [ "nix" ];
userSettings = builtins.fromJSON (builtins.readFile ./settings.json);
};
};