Zed is really cool!!

This commit is contained in:
Emmet 2025-10-25 14:46:42 -05:00
parent cb5659541e
commit 8770c61d40
5 changed files with 30 additions and 6 deletions

View file

@ -28,8 +28,9 @@ in {
(lib.mkIf (editor == "emacs") "emacsclient -c -n -a 'emacs'")
(lib.mkIf (editor == "neovide") "neovide -- --listen /tmp/nvimsocket")
(lib.mkIf (editor == "vscodium") "codium -n")
(lib.mkIf (editor == "zed") "zeditor")
(lib.mkIf (builtins.elem editor [ "vim" "nvim" "nano" "micro" ]) ("exec " + term + " -e " + editor))
(lib.mkIf (!(builtins.elem editor [ "emacs" "vim" "nvim" "neovide" "nano" "micro" "vscodium"])) editor)
(lib.mkIf (!(builtins.elem editor [ "emacs" "vim" "nvim" "neovide" "nano" "micro" "vscodium" "zed"])) editor)
];
home.sessionVariables = {
EDITOR =

View file

@ -78,8 +78,7 @@
(set-face-background 'fringe (face-attribute 'default :background))
;; Fira and glyphs
(when (window-system)
(set-frame-font "FiraCode Nerd Font"))
(set-frame-font "FiraCode Nerd Font")
(let ((alist '((33 . ".\\(?:\\(?:==\\|!!\\)\\|[!=]\\)")
(35 . ".\\(?:###\\|##\\|_(\\|[#(?[_{]\\)")
(36 . ".\\(?:>\\)")

View file

@ -374,6 +374,7 @@ in
"tile,title:(Godot)"
"suppressevent maximize,class:^(steam)$"
] ++ lib.optionals (!performance) [
"opacity 0.80,class:^(dev.zed.Zed)$"
"opacity 0.80,class:^(org.pulseaudio.pavucontrol)$"
"opacity 1.0,class:^(org.qutebrowser.qutebrowser),fullscreen:1"
"opacity 0.85,class:^(Element)$"

View file

@ -10,10 +10,33 @@ in {
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
gitu nixd
];
stylix.targets.zed.enable = true;
programs.zed-editor.enable = true;
programs.zed-editor.extensions = [
"nix"
"gdscript"
"git_firefly"
"toml"
"xml"
"svelte"
"vue"
"scss"
"make"
"dockerfile"
"docker-compose"
"hyprlang"
"java"
"lua"
"r"
"kotlin"
"haskell"
"perl"
"fortran"
"ruby"
"org"
];
};
}