zed: basic config
This commit is contained in:
parent
d8174071fc
commit
90eb45beb0
2 changed files with 49 additions and 1 deletions
|
|
@ -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"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
config = lib.mkIf config.settings.programs.zed.enable {
|
config = lib.mkIf config.settings.programs.zed.enable {
|
||||||
programs.zed-editor = {
|
programs.zed-editor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
extensions = [ "nix" ];
|
||||||
userSettings = builtins.fromJSON (builtins.readFile ./settings.json);
|
userSettings = builtins.fromJSON (builtins.readFile ./settings.json);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue