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
#$(plain-file "plugin-loader.kak" "\
eval %sh{
IFS=:
for dir in $GUIX_KAK_PLUGINS_PATH; do
for plugin in $(ls $dir); do
for file in $(ls $dir/$plugin); do
echo source $dir/$plugin/$file
done
done
printf 'source %s\n' $dir/*/*
done
}")
(string-append tools "/plugin-loader.kak"))))))