-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·99 lines (74 loc) · 2.04 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Install package manager
mkdir -p ~/.local/share/nvim/site/pack/packer/start
cd ~/.local/share/nvim/site/pack/packer/start
git clone --depth 1 https://github.com/wbthomason/packer.nvim packer.nvim
cd -
# Terminal rust programs
brew install neovim
brew install lua
# install dependency tools
brew install ripgrep
brew install fd
brew install exa # ls
brew install bat # cat
# languages support
## Typescript
npm i -g typescript typescript-language-server
npm install -g @fsouza/prettierd
## JSON
npm i -g fixjson
## Solidity
npm install @nomicfoundation/solidity-language-server -g
# Lua
brew install lua-language-server
brew install luarocks
luarocks install luacheck
luarocks install lanes
# Rust
rustup component add rust-analyzer
rustup component add rustfmt
rustup component add clippy
# CSharp
dotnet tool install --global csharp-ls
# Python
npm i -g pyright
pip3 install black
# Go
## Language Server
go install golang.org/x/tools/gopls@latest
## Linter
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.2
## Protobuf
### Plugins
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
### Language server
go install github.com/bufbuild/buf-language-server/cmd/bufls@latest
## Install dependencies $GOPATH is configured in ~/.zshrc
## export GOPATH=/opt/go
mkdir /opt/go
# C/C++
brew install llvm
## Make this part of env
## cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1
## ln -s ~/myproject-build/compile_commands.json ~/myproject/
# Tailwind
npm install -g @tailwindcss/language-server
# YAML
go install github.com/google/yamlfmt/cmd/yamlfmt@latest
# checkhealth
pip3 install neovim
npm i -g neovim
cargo install tree-sitter-cli
# fonts
# https://www.nerdfonts.com/font-downloads
brew tap homebrew/cask-fonts &&
brew install --cask font-dejavu-sans-mono-nerd-font
# writting
npm i -g write-good
pip3 install codespell
pip3 install yamllint
npm install -g @commitlint/{config-conventional,cli}
npm install -g commitlint-format-json
# Mundo plugin dependency
pip3 install pynvim