-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnvim_setting.sh
More file actions
executable file
·80 lines (54 loc) · 1.6 KB
/
nvim_setting.sh
File metadata and controls
executable file
·80 lines (54 loc) · 1.6 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/bash
OS=$(uname -s)
if [ $OS == 'Linux' ]; then
if [ -x /usr/bin/nvim ] || [ -x /snap/bin/nvim ]; then
:
else
if [ -x /usr/bin/apt ]; then
sudo apt install nvim
elif [ -x /usr/bin/dnf ]; then
sudo dnf install ripgrep
elif [ -x /usr/bin/yum ]; then
sudo yum -y install nvim
fi
fi
if [ -x /usr/bin/ripgrep ]; then
:
else
if [ -x /usr/bin/apt ]; then
sudo apt install ripgrep
elif [ -x /usr/bin/dnf ]; then
sudo dnf install ripgrep
elif [ -x /usr/bin/yum ]; then
sudo yum -y install ripgrep
fi
fi
elif [ $OS == 'Darwin' ]; then
if ! type brew &> /dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
if ! type java &> /dev/null; then
brew install openjdk@17
fi
if ! type nvim &> /dev/null; then
brew install nvim
fi
if ! type ripgrep &> /dev/null; then
brew install ripgrep
ln -s $(which /opt/homebrew/Cellar/ripgrep/*/bin/rg) /opt/homebrew/bin/ripgrep
fi
fi
mv ~/.config/nvim ~/.config/nvim.bak
mv ~/.local/share/nvim ~/.local/share/nvim.bak
mv ~/.local/state/nvim ~/.local/state/nvim.bak
mv ~/.cache/nvim ~/.cache/nvim.bak
git clone https://github.com/silvern1990/astronvim_for_spring ~/.config/nvim
cd ~/.config/nvim/lua/user
git pull origin mine
git clone https://github.com/microsoft/java-debug ~/.local/share/nvim/java-debug
cd ~/.local/share/nvim/java-debug
./mvnw clean install
git clone https://github.com/microsoft/vscode-java-test ~/.local/share/nvim/java-debug/vscode-java-test
cd ~/.local/share/nvim/java-debug/vscode-java-test
npm install
npm run build-plugin