True lazy loading, lsp installs, and nvim-compe
Installation scripts for: + bashls + ccls + clangd + pylsp + pyright + sumneko + zls And adjusted a few keymaps
This commit is contained in:
parent
052b4513c2
commit
4ca63a5884
11 changed files with 337 additions and 105 deletions
8
scripts/install_bashls_server.sh
Normal file
8
scripts/install_bashls_server.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
source scripts/query_dependencies.sh
|
||||
query_dep 'npm'
|
||||
|
||||
if response == 'y' then
|
||||
npm -i -g bash-language-server
|
||||
fi
|
14
scripts/install_ccls_server.sh
Normal file
14
scripts/install_ccls_server.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
source scripts/query_dependencies.sh
|
||||
query_dep 'CMake'
|
||||
query_dep 'C++17'
|
||||
query_dep '
|
||||
|
||||
if response == 'y' then
|
||||
cd builds
|
||||
git clone --depth=1 --recursive https://github.com/MaskRay/ccls
|
||||
cd ccls
|
||||
cmake -H. -BRelease -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/path/to/clang+llvm-xxx
|
||||
cmake --build Release
|
||||
fi
|
4
scripts/install_clangd_server.sh
Normal file
4
scripts/install_clangd_server.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
printf 'Install from clang-tools or similar '
|
||||
printf 'with your OS or from releases on LLVM site\n'
|
8
scripts/install_pylsp_server.sh
Normal file
8
scripts/install_pylsp_server.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
source scripts/query_dependencies.sh
|
||||
query_dep 'pip'
|
||||
|
||||
if response == 'y' then
|
||||
pip install python-lsp-server
|
||||
fi
|
8
scripts/install_pyright_server.sh
Normal file
8
scripts/install_pyright_server.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
source scripts/query_dependencies.sh
|
||||
query_dep 'npm'
|
||||
|
||||
if response == 'y' then
|
||||
npm -i -g pyright
|
||||
fi
|
17
scripts/install_sumneko_lua.sh
Normal file
17
scripts/install_sumneko_lua.sh
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
source scripts/query_dependencies.sh
|
||||
query_dep 'ninja'
|
||||
query_dep 'C++17'
|
||||
|
||||
if $response == 'y' then
|
||||
mkdir -p builds
|
||||
cd builds
|
||||
git clone https://github.com/sumneko/lua-language-server
|
||||
cd lua-language-server
|
||||
git submodule update --init --recursive
|
||||
cd 3rd/luamake
|
||||
compile/install.sh
|
||||
cd ../..
|
||||
./3rd/luamake/luamake rebuild
|
||||
fi
|
8
scripts/install_zls_server.sh
Normal file
8
scripts/install_zls_server.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
source scripts/query_dependencies.sh
|
||||
query_dep "xz or xz-utils"
|
||||
|
||||
if response == 'y' then
|
||||
mkdir -p builds/zls && cd builds/zls && curl -L https://github.com/zigtools/zls/releases/download/0.1.0/x86_64-linux.tar.xz | tar -xJ --strip-components=1 -C .
|
||||
fi
|
7
scripts/query_dependency.sh
Normal file
7
scripts/query_dependency.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
function query_dep(){
|
||||
printf 'Did you install '
|
||||
printf $1
|
||||
printf '?\n (y/N)'
|
||||
response='n'
|
||||
read response
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue