From 98284e0af36e4a913bd575d38f932023dec92d22 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 11 Apr 2022 23:15:51 -0700 Subject: Make zsh plugins their own services --- oni/home/data/config.scm | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'oni/home/data/config.scm') diff --git a/oni/home/data/config.scm b/oni/home/data/config.scm index 070f4c2..7c2b064 100644 --- a/oni/home/data/config.scm +++ b/oni/home/data/config.scm @@ -13,12 +13,11 @@ #:use-module (oni home services kitty) #:use-module (oni home services xsession) #:use-module (oni home services compton) - #:use-module (oni home services xbindkeys)) + #:use-module (oni home services xbindkeys) + #:use-module (oni home services zsh)) (home-environment - (packages (list (specification->package+output "glibc-locales") - zsh-syntax-highlighting - zsh-autosuggestions)) + (packages (list (specification->package+output "glibc-locales"))) (services (list @@ -62,10 +61,12 @@ "bindkey -e '^W' x-kill-region\n" "bindkey -e '^Y' x-yank\n" "autoload -Uz compinit\n" - "compinit\n" - "source " zsh-autosuggestions "/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh\n" - ;; This has to be last - "source " zsh-syntax-highlighting "/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh\n"))))) + "compinit\n"))))) + + ;; This has to be the first extension because it needs to be added to the + ;; configuration last. + (service home-zsh-syntax-highlighting-service-type) + (service home-zsh-autosuggestions-service-type) (service home-rofi-service-type (home-rofi-configuration -- cgit v1.2.3-54-g00ecf