FollieHiyuki-dotfiles/setup/lua-language-server.sh

23 lines
505 B
Bash
Raw Normal View History

2021-03-02 09:05:45 -05:00
#!/bin/sh
# clone the repo
git clone https://github.com/sumneko/lua-language-server.git
2021-03-02 09:05:45 -05:00
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
cd ../
# For coc.nvim
mkdir -pv ~/.local/share/nvim/lsp
cp -rfv lua-language-server ~/.local/share/nvim/lsp/
2021-03-02 09:05:45 -05:00
# For Doom Emacs
mkdir -pv ~/.config/emacs/.local/etc/lsp
mv -rv lua-language-server ~/.config/emacs/.local/etc/lsp/