-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·71 lines (58 loc) · 1.38 KB
/
setup.sh
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
#!/bin/bash
# This is a setup script for my NeoVim configuration
# Requires Homebrew, NPM, and Go installed
# Ensure you have their relative binary paths added to your $PATH in ~/.zshrc or ~/.bashrc
# Installs language server support for the following:
# * Golang
# * Bash
# * TypeScript
# * HTML
# * CSS
# * Python
# * Dockerfile
# * Terraform
# * Rust
# * VIM Script
# Copy Configuration Files
mkdir -p $HOME/.config/nvim/vim-plug
cp init.vim $HOME/.config/nvim/init.vim
cp vim-plug/plugins.vim $HOME/.config/nvim/vim-plug/plugins.vim
# Dependencies
if ! command -v brew &> /dev/null
then
echo "Missing Homebrew. Exiting..."
exit
fi
if ! command -v npm &> /dev/null
then
echo "Missing NPM. Exiting..."
exit
fi
if ! command -v go &> /dev/null
then
echo "Missing Go. Exiting..."
exit
fi
if ! command -v nvim &> /dev/null
then
brew install neovim
fi
npm i -g \
bash-language-server \
vscode-langservers-extracted \
pyright \
dockerfile-language-server-nodejs \
typescript typescript-language-server \
vim-language-server \
graphql-language-service-cli \
diagnostic-languageserver
brew install \
tree-sitter \
luajit \
hashicorp/tap/terraform-ls \
rust-analyzer \
ripgrep
GO111MODULE=on go get golang.org/x/tools/gopls@latest
# Install NeoVim Plugins
nvim +PlugInstall +qall
nvim "+TSInstall javascript typescript bash go html css python rust yaml graphql" +qall