-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlsp-install.zsh
executable file
·65 lines (54 loc) · 1.52 KB
/
lsp-install.zsh
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
#!/bin/zsh
# CSS
echo "\n Installing CSS server...\n"
yarn global add vscode-css-languageserver-bin
# Elixir
echo "\n Installing Elixir server...\n"
curl --show-error --location https://github.com/elixir-lsp/elixir-ls/releases/latest/download/elixir-ls.zip | tar xf - -C $HOME/.elixir-ls/release/
chmod u+x $HOME/.elixir-ls/release/language_server.sh
# Go
echo "\n Installing Go server...\n"
if which gopls > /dev/null 2>&1
then
brew upgrade gopls
else
brew install gopls
fi
# GraphQL
echo "\n Installing GraphQL server...\n"
yarn global add graphql-language-service-cli
# HTML
echo "\n Installing HTML server...\n"
yarn global add vscode-langservers-extracted
# JavaScript / TypeScript
echo "\n Installing TypeScript server...\n"
yarn global add typescript typescript-language-server
# JSON
echo "\n Installing JSON server...\n"
yarn global add vscode-json-languageserver
# Lua
echo "\n Installing Lua server...\n"
if which ninja > /dev/null 2>&1
then
brew upgrade ninja
else
brew install ninja
fi
rm -rf $HOME/.lua-ls
git clone https://github.com/sumneko/lua-language-server $HOME/.lua-ls
cd $HOME/.lua-ls
git submodule update --init --recursive
cd 3rd/luamake
compile/install.sh
cd ../..
./3rd/luamake/luamake rebuild
# Python
echo "\n Installing Python server...\n"
pip3 install 'python-lsp-black'
pip3 install 'python-lsp-server'
# Ruby
echo "\n Installing Ruby server...\n"
gem install --user-install solargraph
# YAML
echo "\n Installing YAML server...\n"
yarn global add yaml-language-server