aboutsummaryrefslogtreecommitdiffstats
path: root/oni/home/services/zsh.scm
diff options
context:
space:
mode:
Diffstat (limited to 'oni/home/services/zsh.scm')
-rw-r--r--oni/home/services/zsh.scm23
1 files changed, 21 insertions, 2 deletions
diff --git a/oni/home/services/zsh.scm b/oni/home/services/zsh.scm
index b40ad64..e8b6a14 100644
--- a/oni/home/services/zsh.scm
+++ b/oni/home/services/zsh.scm
@@ -21,8 +21,8 @@
home-zsh-autopair-configuration
home-zsh-atuin-service-type
home-zsh-atuin-configuration
- home-zsh-completion-service-type
- home-zsh-completion-configuration))
+ home-zsh-completions-service-type
+ home-zsh-completions-configuration))
(define-maybe string)
@@ -257,3 +257,22 @@ statistics. For example, consider kubectl get rather than just kubectl.")
(compose identity)
(default-value (home-zsh-atuin-configuration))
(description "Install and configure atuin.")))
+
+(define-configuration home-zsh-completions-configuration
+ (package
+ (package zsh-completions)
+ "Package to use for setting zsh-completions."))
+
+(define (add-zsh-completions-packages config)
+ (list (home-zsh-completions-configuration-package config)))
+
+(define home-zsh-completions-service-type
+ (service-type
+ (name 'home-zsh-completions)
+ (extensions
+ (list (service-extension
+ home-profile-service-type
+ add-zsh-completions-packages)))
+ (compose identity)
+ (default-value (home-zsh-completions-configuration))
+ (description "Install and configure zsh-completions.")))