about summary refs log tree commit diff stats
path: root/nix-conf/home
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-09-10 09:44:56 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-09-10 09:44:56 +0100
commit18f7371f124ad3c019faae124d55f47444a38302 (patch)
treec3e8f3f0c8ead79a4a022956d1f376295bda28e2 /nix-conf/home
parentaddba2e123df9e4a317e80b52bc6aafc0b8b257b (diff)
downloaddotfiles-18f7371f124ad3c019faae124d55f47444a38302.tar.gz
Improve zsh autosuggestion config
Diffstat (limited to 'nix-conf/home')
-rw-r--r--nix-conf/home/includes/zsh.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix
index a9633c3..3fccb0a 100644
--- a/nix-conf/home/includes/zsh.nix
+++ b/nix-conf/home/includes/zsh.nix
@@ -47,7 +47,11 @@ in
   programs.zsh = {
     enable = true;
     enableCompletion = true;
-    autosuggestion.enable = true;
+    # TODO: put strategy here after 24.11 is released
+    autosuggestion = {
+      enable = true;
+      highlight = "fg=#808080";
+    };
     defaultKeymap = "emacs";
     history = {
       expireDuplicatesFirst = true;
@@ -119,6 +123,7 @@ in
       PER_DIRECTORY_HISTORY_TOGGLE = "^\\\\"; # ^\\ is ^#
       HISTORY_START_WITH_GLOBAL = true;
 
+      # TODO move to programs.zsh.autosuggestion.strategy when 24.11 is released
       ZSH_AUTOSUGGEST_STRATEGY = [
         "history"
         "completion"