mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
home-manager: add Zed editor
This commit is contained in:
parent
8d7dc3582e
commit
941c8a6618
5 changed files with 1650 additions and 1 deletions
|
|
@ -32,7 +32,6 @@ in
|
|||
environment.systemPackages = with pkgs; [
|
||||
google-chrome
|
||||
vscode
|
||||
zed-editor
|
||||
telegram-desktop
|
||||
];
|
||||
|
||||
|
|
|
|||
51
modules/home/all/zed/default.nix
Normal file
51
modules/home/all/zed/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
10
modules/home/all/zed/remote-projects.nix
Normal file
10
modules/home/all/zed/remote-projects.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
ssh_connections = [
|
||||
{
|
||||
host = "pureintent";
|
||||
projects = [
|
||||
"~/code/ny/nammayatri"
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
1588
modules/home/all/zed/themes/Catppuccin.json
Normal file
1588
modules/home/all/zed/themes/Catppuccin.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -5,6 +5,7 @@
|
|||
./all/vscode-server.nix
|
||||
./all/emacs.nix
|
||||
./all/obs.nix
|
||||
./all/zed
|
||||
|
||||
# Terms
|
||||
./all/rio.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue