aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/neovim.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/neovim.sh')
-rwxr-xr-xbootstrap/neovim.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/bootstrap/neovim.sh b/bootstrap/neovim.sh
index 6010af3..e1a9112 100755
--- a/bootstrap/neovim.sh
+++ b/bootstrap/neovim.sh
@@ -78,10 +78,36 @@ install_npm() {
78 npm install -g "$package" 78 npm install -g "$package"
79} 79}
80 80
81install_pipx() {
82 binary="$1"
83 package="$2"
84
85 if have "$binary"; then
86 printf "✓ %-32s vorhanden\n" "$binary"
87 return
88 fi
89
90 if ! have pipx; then
91 die "pipx wurde nicht gefunden."
92 fi
93
94 printf "→ Installiere pipx-Paket %s\n" "$package"
95 pipx install "$package"
96}
97
81install_prerequisites() { 98install_prerequisites() {
82 install_pkg curl curl 99 install_pkg curl curl
83 install_pkg git git 100 install_pkg git git
84 install_pkg node node 101 install_pkg node node
102
103 case "$OS" in
104 Darwin)
105 install_pkg pipx pipx
106 ;;
107 FreeBSD)
108 install_pkg pipx devel/py-pipx
109 ;;
110 esac
85} 111}
86 112
87install_formatters() { 113install_formatters() {
@@ -92,6 +118,7 @@ install_formatters() {
92 install_pkg shfmt shfmt 118 install_pkg shfmt shfmt
93 install_pkg stylua stylua 119 install_pkg stylua stylua
94 install_pkg yamlfmt yamlfmt 120 install_pkg yamlfmt yamlfmt
121 install_pipx djlint djlint
95 122
96 case "$OS" in 123 case "$OS" in
97 Darwin) 124 Darwin)