mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-11-25 00:38:23 -05:00
25 lines
601 B
Bash
25 lines
601 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# clone the repo
|
||
|
git clone https://github.com/sumneko/lua-language-server
|
||
|
cd lua-language-server || exit
|
||
|
git submodule update --init --recursive
|
||
|
|
||
|
# build
|
||
|
# You need `ninja`
|
||
|
cd 3rd/luamake || exit
|
||
|
ninja -f ninja/linux.ninja
|
||
|
cd ../..
|
||
|
./3rd/luamake/luamake rebuild
|
||
|
|
||
|
# Just for the convenience sake
|
||
|
cd ../
|
||
|
mv -rfv lua-language-server ~/Code/lua-language-server
|
||
|
|
||
|
# For coc.nvim
|
||
|
mkdir -pv ~/.local/share/nvim/lsp
|
||
|
ln -sv ~/Code/lua-language-server ~/.local/share/nvim/lsp/
|
||
|
# For Doom Emacs
|
||
|
mkdir -pv ~/.config/emacs/.local/etc/lsp
|
||
|
ln -sv ~/Code/lua-language-server ~/.config/emacs/.local/etc/lsp/
|