aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/neovim.sh
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-09-02 12:32:19 +0200
committerThomas Schmucker <ts@its1.de>2026-09-02 12:32:19 +0200
commit1da598352f7a50ec2a0d96bac834d87ea7b1a836 (patch)
treeaf25bda88db603e872d360569f3a8b1792344807 /bootstrap/neovim.sh
parent807170eef48e2181abf306b1424c736f5179b36e (diff)
downloaddotfiles-1da598352f7a50ec2a0d96bac834d87ea7b1a836.tar.gz
dotfiles-1da598352f7a50ec2a0d96bac834d87ea7b1a836.tar.bz2
dotfiles-1da598352f7a50ec2a0d96bac834d87ea7b1a836.zip
neovim: bootstrap Skript angepasst
Diffstat (limited to 'bootstrap/neovim.sh')
-rwxr-xr-xbootstrap/neovim.sh28
1 files changed, 27 insertions, 1 deletions
diff --git a/bootstrap/neovim.sh b/bootstrap/neovim.sh
index bf8d8ad..3d92af0 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 py-pipx
109 ;;
110 esac
85} 111}
86 112
87install_formatters() { 113install_formatters() {
@@ -92,11 +118,11 @@ 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)
98 install_pkg clang-format clang-format 125 install_pkg clang-format clang-format
99 install_pkg djlint djlint
100 ;; 126 ;;
101 FreeBSD) 127 FreeBSD)
102 install_pkg xmllint libxml2 128 install_pkg xmllint libxml2