From 994d575484eda3bc320f2fe637a3573de81dda7b Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sun, 16 Jun 2024 09:00:39 +0200 Subject: [PATCH] refactor(zsh): migrate settings --- home-manager/zsh.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/home-manager/zsh.nix b/home-manager/zsh.nix index a33a598..e95a159 100644 --- a/home-manager/zsh.nix +++ b/home-manager/zsh.nix @@ -1,14 +1,18 @@ -{ config, lib, pkgs, user, theme, ... }: +{ theme, ... }: let zsh_autosuggest_highlight_style = if theme == "light" then "fg=180" else "fg=10"; in { programs.zsh = { enable = true; - # enableAutosuggestions = true; - # enableCompletion = true; + enableCompletion = true; history.size = 10000; + autosuggestion = { + enable = true; + highlight = zsh_autosuggest_highlight_style; + }; + initExtra = '' function set_win_title(){ local TITLE=$(git config --get remote.origin.url || echo "$PWD") @@ -18,10 +22,6 @@ in precmd_functions+=(set_win_title) ''; - sessionVariables = { - ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = zsh_autosuggest_highlight_style; - }; - shellAliases = { ls = "eza --group-directories-first --git"; neovide = "neovide --multigrid";