packages: text-editors: Simplify the plugin loader

main
Luis Guilherme Coelho 2024-11-13 03:31:10 -03:00
parent 202a4aa188
commit 9c2da26373
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 2 additions and 5 deletions

View File

@ -66,12 +66,9 @@
(copy-file (copy-file
#$(plain-file "plugin-loader.kak" "\ #$(plain-file "plugin-loader.kak" "\
eval %sh{ eval %sh{
IFS=:
for dir in $GUIX_KAK_PLUGINS_PATH; do for dir in $GUIX_KAK_PLUGINS_PATH; do
for plugin in $(ls $dir); do printf 'source %s\n' $dir/*/*
for file in $(ls $dir/$plugin); do
echo source $dir/$plugin/$file
done
done
done done
}") }")
(string-append tools "/plugin-loader.kak")))))) (string-append tools "/plugin-loader.kak"))))))