diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-01-22 17:39:08 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-01-22 17:39:08 +0100 |
commit | ed888229826268ef0e51802e4e8f1f8c66b4e69d (patch) | |
tree | c7d631f549b80970e950f54166bae1b52148a02b /bootstrap | |
parent | c9904e97919dd5366b339a436466dfdfa3061bf5 (diff) |
Add bootstrap sh script
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap new file mode 100755 index 0000000..279b2a7 --- /dev/null +++ b/bootstrap @@ -0,0 +1,16 @@ +#!/bin/sh + +datadir="$HOME/.local/share/nvim" +pluginsdir="$datadir/lazy" + +clone() { + user="$1" + plugin="$2" + plugindir="$pluginsdir/$plugin" + [ ! -d "$plugindir" ] && git clone --filter=blob:none --single-branch "https://github.com/$user/$plugin.git" "$plugindir" +} + +[ ! -d "$datadir" ] && echo "Neovim does not seem to be installed!" && exit 1 +clone "folke" "lazy.nvim" +clone "rktjmp" "hotpot.nvim" +exit 0 |