Ensure packages are installed for the zsh plugins
This commit is contained in:
parent
98284e0af3
commit
13baec4666
1 changed files with 14 additions and 2 deletions
|
@ -25,13 +25,19 @@
|
||||||
"zshrc"
|
"zshrc"
|
||||||
"source " (home-zsh-autosuggestions-configuration-package config) "/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh")))))
|
"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
|
(define home-zsh-autosuggestions-service-type
|
||||||
(service-type
|
(service-type
|
||||||
(name 'home-zsh-autosuggestions)
|
(name 'home-zsh-autosuggestions)
|
||||||
(extensions
|
(extensions
|
||||||
(list (service-extension
|
(list (service-extension
|
||||||
home-zsh-service-type
|
home-zsh-service-type
|
||||||
add-zsh-autosuggestions)))
|
add-zsh-autosuggestions)
|
||||||
|
(service-extension
|
||||||
|
home-profile-service-type
|
||||||
|
add-zsh-autosuggestions-packages)))
|
||||||
(compose identity)
|
(compose identity)
|
||||||
(default-value (home-zsh-autosuggestions-configuration))
|
(default-value (home-zsh-autosuggestions-configuration))
|
||||||
(description "Install and configure zsh-autosuggestions.")))
|
(description "Install and configure zsh-autosuggestions.")))
|
||||||
|
@ -50,13 +56,19 @@
|
||||||
"zshrc"
|
"zshrc"
|
||||||
"source " (home-zsh-syntax-highlighting-configuration-package config) "/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh")))))
|
"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
|
(define home-zsh-syntax-highlighting-service-type
|
||||||
(service-type
|
(service-type
|
||||||
(name 'home-zsh-syntax-highlighting)
|
(name 'home-zsh-syntax-highlighting)
|
||||||
(extensions
|
(extensions
|
||||||
(list (service-extension
|
(list (service-extension
|
||||||
home-zsh-service-type
|
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)
|
(compose identity)
|
||||||
(default-value (home-zsh-syntax-highlighting-configuration))
|
(default-value (home-zsh-syntax-highlighting-configuration))
|
||||||
(description "Install and configure zsh-syntax-highlighting.")))
|
(description "Install and configure zsh-syntax-highlighting.")))
|
||||||
|
|
Loading…
Reference in a new issue