From ed888229826268ef0e51802e4e8f1f8c66b4e69d Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 22 Jan 2023 17:39:08 +0100 Subject: Add bootstrap sh script --- bootstrap | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bootstrap (limited to 'bootstrap') 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 -- cgit v1.2.3-70-g09d2