mirror of
https://github.com/nmasur/dotfiles
synced 2025-04-04 22:41:11 +00:00
54 lines
833 B
Nix
54 lines
833 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.nmasur.presets.programs.zed-editor;
|
|
in
|
|
|
|
{
|
|
|
|
options.nmasur.presets.programs.zed-editor.enable = lib.mkEnableOption "Zed text editor";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.zed-editor = {
|
|
enable = true;
|
|
|
|
extensions = [
|
|
"nix"
|
|
"rust"
|
|
];
|
|
|
|
extraPackages = [ pkgs.nixd ];
|
|
|
|
installRemoteServer = false;
|
|
|
|
userKeymaps = [
|
|
{
|
|
context = "Workspace";
|
|
bindings = {
|
|
ctrl-shift-t = "workspace::NewTerminal";
|
|
};
|
|
}
|
|
];
|
|
|
|
userSettings = {
|
|
features = {
|
|
copilot = false;
|
|
};
|
|
telemetry = {
|
|
metrics = false;
|
|
};
|
|
vim_mode = true;
|
|
ui_font_size = 16;
|
|
buffer_font_size = 16;
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
}
|