home-manager: add Zed editor

This commit is contained in:
Sridhar Ratnakumar 2024-12-16 11:35:02 -05:00
parent 8d7dc3582e
commit 941c8a6618
5 changed files with 1650 additions and 1 deletions

View file

@ -32,7 +32,6 @@ in
environment.systemPackages = with pkgs; [
google-chrome
vscode
zed-editor
telegram-desktop
];

View file

@ -0,0 +1,51 @@
# https://github.com/nix-community/home-manager/blob/master/modules/programs/zed-editor.nix
{
home.file.".config/zed/themes".source = ./themes;
programs.zed-editor = {
enable = true;
# https://github.com/zed-industries/extensions/tree/main/extensions
extensions = [
"just"
"nix"
];
userSettings = {
imports = [ ./remote-projects.nix ];
vim_mode = true;
base_keymap = "VSCode";
soft_wrap = "editor_width";
tab_size = 2;
# direnv
load_direnv = "shell_hook";
lsp =
let useDirenv = { binary.path_lookup = true; };
in {
haskell = useDirenv;
rust_analyzer = useDirenv;
nix = useDirenv;
};
# Look & feel
ui_font_size = 16;
ui_font_family = "Cascadia Code";
buffer_font_size = 14;
theme = {
mode = "system";
light = "Catppuccin Mocha";
dark = "One Dark";
};
# Layout
outline_panel = {
dock = "right";
};
project_panel = {
dock = "right";
};
};
};
}

View file

@ -0,0 +1,10 @@
{
ssh_connections = [
{
host = "pureintent";
projects = [
"~/code/ny/nammayatri"
];
}
];
}

File diff suppressed because it is too large Load diff

View file

@ -5,6 +5,7 @@
./all/vscode-server.nix
./all/emacs.nix
./all/obs.nix
./all/zed
# Terms
./all/rio.nix