aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-01-02 02:09:29 -0800
committerGravatar Tom Willemse2026-01-02 02:09:29 -0800
commit48cbfe8e46222e06a6e7322761807a3c22b6cce8 (patch)
tree4e5fc9a55ce62d013e10db88b12d3622304460ac
parent6e44a6bc9605e181ea1d35e54a105a64b849d836 (diff)
downloadnew-dotfiles-48cbfe8e46222e06a6e7322761807a3c22b6cce8.tar.gz
new-dotfiles-48cbfe8e46222e06a6e7322761807a3c22b6cce8.zip
zsh: Add zsh-completions configuration
-rw-r--r--oni/home/config/common.scm3
-rw-r--r--oni/home/services/zsh.scm23
2 files changed, 23 insertions, 3 deletions
diff --git a/oni/home/config/common.scm b/oni/home/config/common.scm
index 1b40c25..af3dd44 100644
--- a/oni/home/config/common.scm
+++ b/oni/home/config/common.scm
@@ -329,4 +329,5 @@ LocalForward 19999 localhost:19999"))
(".zsh/functions/x-yank"
,(local-file "../../../zsh/.zsh/functions/x-yank"))
(".zsh/functions/_abcde"
- ,(local-file "../../../zsh/.zsh/functions/_abcde"))))))
+ ,(local-file "../../../zsh/.zsh/functions/_abcde"))))
+ (service home-zsh-completions-service-type)))
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.")))