-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_neovim
executable file
·56 lines (43 loc) · 1.83 KB
/
install_neovim
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
#!/bin/bash
source "$HOME"/.bash_functions
#SETUP
if [[ $1 == '-u' ]]; then
WGET='wget -q -N' # only download if version is newer
#PACKER_CMD='PackerSync'
else
WGET='wget -q --no-clobber' #only download if file does not exist
#PACKER_CMD='PackerInstall'
fi
#"$WGET" https://github.com/neovim/neovim/releases/download/stable/nvim.appimage -O "$HOME"/.local/bin/nvim
#chmod +x "$HOME"/.local/bin/nvim
#if [[ ! -d "$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim" ]]; then
# echo "Installation plugin packer"
# git clone --depth 1 https://github.com/wbthomason/packer.nvim \
# "$HOME"/.local/share/nvim/site/pack/packer/start/packer.nvim
#elif [[ $1 == '-u' ]]; then
# cd "$HOME"/.local/share/nvim/site/pack/packer/start/packer.nvim
# git pull
#fi
#nvim --headless -c 'autocmd User PackerComplete quitall' -c "${PACKER_CMD}"
sudo apt-get install -y exuberant-ctags 2>/dev/null
#echo "installation Rust LSP"
#curl -s -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-x86_64-unknown-linux-gnu.gz \
# --output - | gunzip >"$HOME"/.local/bin/rust-analyzer
#chmod u+x "$HOME"/.local/bin/rust-analyzer
#echo "installation Clang LSP"
#VERSION=$(github_get_latest_version clangd/clangd)
#wget -q https://github.com/clangd/clangd/releases/latest/download/clangd-linux-"$VERSION".zip -O /tmp/clangd.zip
#unzip -j -x /tmp/clangd.zip clangd_*/bin/clangd -d "$HOME"/.local/bin/
#echo "installation Lua LSP"
#nix-env -i sumneko-lua-language-server && sudo ln -s "$HOME"/.nix-profile/bin/lua-language-server /usr/local/bin/.
#echo "Installation yaml LSP"
#npm install --global yarn
#yarn global add yaml-language-server
#echo "install bash LSP"
#npm i -g bash-language-server
echo "Install TOML CLi"
#cargo -q install taplo-lsp
cargo -q install taplo-cli
echo "Install formatters"
echo " Install Stylua"
cargo -q install stylua