From fbb0d4e3b41b5afb2124a03696963a7d1d096cf2 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Mon, 26 May 2025 00:58:20 -0400 Subject: [PATCH] AutoYADM commit: 2025-05-26 00:58:20 --- .config/kak/autoload/bootstrap.kak | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .config/kak/autoload/bootstrap.kak diff --git a/.config/kak/autoload/bootstrap.kak b/.config/kak/autoload/bootstrap.kak new file mode 100644 index 00000000..536076d0 --- /dev/null +++ b/.config/kak/autoload/bootstrap.kak @@ -0,0 +1,45 @@ +# this is for bootstrapping all external dependencies of my kakoune setup + +# installs: +# fish +# ripgrep +# fd +# lua +# luajit +# kak-tree-sitter +# ktsctl +# hop-kak +# kakoune-lsp +# kak-popup +# aspell +# aspell-en +# bundle + +define-command -hidden install-bundle %{ + info %sh{ + mkdir -p "$kak_config/bundle" + git clone https://codeberg.org/jdugan6240/kak-bundle "$kak_config/bundle/kak-bundle" >/dev/null 2>&1 + echo "Restart kakoune and run bundle-install" + } +} + +define-command -hidden install-pacman %{ + terminal sh sudo pacman -Syu fish ripgrep fd lua luajit kakoune-lsp aspell aspell-en +} + +define-command -hidden install-cargo %{ + terminal sh %{ + cargo install kak-tree-sitter; + cargo install ktsctl; + cargo install hop-kak; + cargo install kak-popup + } +} + +define-command -docstring %{ + Bootstrap external dependencies of this configuration. +} bootstrap %{ + install-bundle + install-pacman + install-cargo +}