mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
14 lines
403 B
Bash
Executable File
14 lines
403 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
git clone https://github.com/zigtools/zls .
|
|
git checkout "refs/tags/$(git tag | grep "^$(zig version | sed -r 's/\.[0-9]+$//')")"
|
|
git submodule update --init --recursive
|
|
zig build
|
|
mv zig-out/bin/zls .
|
|
rm -rf zig-cache zig-out src tests
|
|
cat <<EOF >zls.json
|
|
{"zig_lib_path":"$(dirname "$(which zig)")/lib/zig","enable_snippets":true,"warn_style":true,"enable_semantic_tokens":true}
|
|
EOF
|