-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnvim-kickstart.bash
executable file
·52 lines (47 loc) · 2.01 KB
/
nvim-kickstart.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env bash
set -e
DOTFILES="$HOME/Documents/git-repos/dotfiles"
BASE="$HOME/.config/nvim"
PACK="$BASE/pack"
BUNDLE="$PACK/bundle"
OPT="$BUNDLE/opt"
START="$BUNDLE/start"
if [[ -d "$PACK" ]]; then
printf "Backing up %s directory to %s/old-nvim…\n" "$PACK" "$HOME"
mv -v "$PACK" "$HOME/old-nvim"
fi
mkdir -p "$BUNDLE"
mkdir -p "$OPT"
mkdir -p "$START"
mkdir -p "$HOME/.nvim_backups"
mkdir -p "$HOME/.nvim_undo"
# TODO: I want maybe to link this file and others unconditionally.
if [[ ! -f "$BASE/init.vim" ]]; then
ln -f -s "$DOTFILES/config/nvim/init.lua" "$BASE/init.lua"
fi
cd "$START" || exit
git clone https://git.sr.ht/~telemachus/nvim-dotfiles
git clone https://git.sr.ht/~telemachus/vim-textobj-curly
git clone https://github.com/bps/vim-textobj-python.git
git clone https://github.com/cespare/vim-toml.git
git clone https://github.com/cormacrelf/vim-colors-github.git
git clone https://github.com/dcampos/nvim-snippy.git
git clone https://github.com/dietsche/vim-lastplace.git
git clone https://github.com/junegunn/vader.vim.git
git clone https://github.com/kana/vim-textobj-entire.git
git clone https://github.com/kana/vim-textobj-function.git
git clone https://github.com/kana/vim-textobj-line.git
git clone https://github.com/kana/vim-textobj-user.git
git clone https://github.com/lambdalisue/suda.vim.git
git clone https://github.com/lukas-reineke/indent-blankline.nvim.git
git clone https://github.com/machakann/vim-sandwich.git
git clone https://github.com/nvim-treesitter/nvim-treesitter-textobjects.git
git clone https://github.com/nvim-treesitter/nvim-treesitter.git
git clone https://github.com/nvim-treesitter/playground.git
git clone https://github.com/owickstrom/vim-colors-paramount.git
git clone https://github.com/projekt0n/github-nvim-theme.git
git clone https://github.com/telemachus/refinery.nvim.git
git clone https://github.com/telemachus/vim-colors-off.git
git clone https://github.com/tpope/vim-commentary.git
git clone https://github.com/tpope/vim-markdown.git
git clone https://github.com/tpope/vim-repeat.git