Merge pull request #44 from Vanderscycle/main

Added lsp for lua
This commit is contained in:
siduck76 2021-05-10 22:51:01 +05:30 committed by GitHub
commit 5ba1ea801b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -208,7 +208,7 @@ I'd install it first and add its setup line :
- **Managing tabs with bufferline!** - **Managing tabs with bufferline!**
- <kbd> Shift </kbd> <kbd> TAB or Shift TAB </kbd> cycle through opened tabs - <kbd> TAB </kbd> or <kbd> Shift TAB </kbd> cycle through opened tabs
- <kbd> Shift </kbd> <kbd> x </kbd> close current tab - <kbd> Shift </kbd> <kbd> x </kbd> close current tab
- <kbd> Shift </kbd> <kbd> t </kbd> open new tab - <kbd> Shift </kbd> <kbd> t </kbd> open new tab

View File

@ -2,7 +2,7 @@
BASE=$(git rev-parse --show-toplevel) BASE=$(git rev-parse --show-toplevel)
LSP_BIN_PATH=$HOME/.local/bin LSP_BIN_PATH=$HOME/.local/bin
default_lsp_langs="css html ts rust python bash json" default_lsp_langs="css html ts rust python bash json lua"
lsp_langs="" lsp_langs=""
choose_langs() { choose_langs() {
@ -126,6 +126,16 @@ install_bash() {
install_node_deps bash-language-server install_node_deps bash-language-server
} }
install_lua() {
git clone https://github.com/sumneko/lua-language-server ~/.config/lua-language-server
( cd ~/.config/lua-language-server/ && git submodule update --init --recursive )
#linux only
(cd ~/.config/lua-language-server/3rd/luamake/ && compile/install.sh)
(cd ~/.config/lua-language-server/ && ./3rd/luamake/luamake rebuild)
}
for lang in ${lsp_langs}; do for lang in ${lsp_langs}; do
if fn_exists install_$lang; then if fn_exists install_$lang; then
heading "Installing $lang language server" heading "Installing $lang language server"