aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-04-11 23:44:19 -0700
committerGravatar Tom Willemse2022-04-11 23:44:19 -0700
commit13baec4666f67140d6865292eb1d4efae37c1461 (patch)
treef2c2469bab9728d57f8705903d79ca823d557c4c
parent98284e0af36e4a913bd575d38f932023dec92d22 (diff)
downloadnew-dotfiles-13baec4666f67140d6865292eb1d4efae37c1461.tar.gz
new-dotfiles-13baec4666f67140d6865292eb1d4efae37c1461.zip
Ensure packages are installed for the zsh plugins
-rw-r--r--oni/home/services/zsh.scm16
1 files changed, 14 insertions, 2 deletions
diff --git a/oni/home/services/zsh.scm b/oni/home/services/zsh.scm
index 26c7bd5..80abdb4 100644
--- a/oni/home/services/zsh.scm
+++ b/oni/home/services/zsh.scm
@@ -25,13 +25,19 @@
"zshrc"
"source " (home-zsh-autosuggestions-configuration-package config) "/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh")))))
+(define (add-zsh-autosuggestions-packages config)
+ (list (home-zsh-autosuggestions-configuration-package config)))
+
(define home-zsh-autosuggestions-service-type
(service-type
(name 'home-zsh-autosuggestions)
(extensions
(list (service-extension
home-zsh-service-type
- add-zsh-autosuggestions)))
+ add-zsh-autosuggestions)
+ (service-extension
+ home-profile-service-type
+ add-zsh-autosuggestions-packages)))
(compose identity)
(default-value (home-zsh-autosuggestions-configuration))
(description "Install and configure zsh-autosuggestions.")))
@@ -50,13 +56,19 @@
"zshrc"
"source " (home-zsh-syntax-highlighting-configuration-package config) "/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh")))))
+(define (add-zsh-syntax-highlighting-packages config)
+ (list (home-zsh-syntax-highlighting-configuration-package config)))
+
(define home-zsh-syntax-highlighting-service-type
(service-type
(name 'home-zsh-syntax-highlighting)
(extensions
(list (service-extension
home-zsh-service-type
- add-zsh-syntax-highlighting)))
+ add-zsh-syntax-highlighting)
+ (service-extension
+ home-profile-service-type
+ add-zsh-syntax-highlighting-packages)))
(compose identity)
(default-value (home-zsh-syntax-highlighting-configuration))
(description "Install and configure zsh-syntax-highlighting.")))