mirror of
https://github.com/librephoenix/nixos-config
synced 2025-11-30 14:43:59 +05:30
Zed is really cool!!
This commit is contained in:
parent
cb5659541e
commit
8770c61d40
5 changed files with 30 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
config = {
|
||||
|
|
@ -13,8 +13,8 @@
|
|||
|
||||
# programs
|
||||
browser = "brave";
|
||||
editor = "emacs";
|
||||
zed.enable = true;
|
||||
editor = "zed";
|
||||
emacs.enable = true;
|
||||
vscodium.enable = true;
|
||||
yazi.enable = true;
|
||||
git.enable = true;
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
|
|
@ -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 . ".\\(?:>\\)")
|
||||
|
|
|
|||
|
|
@ -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)$"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue