summaryrefslogtreecommitdiff
path: root/setup-zls.fish
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-12-18 22:45:28 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-12-18 22:45:28 +0100
commit32bb63d22e243d4e1e0998f97b5528ea86e1ae78 (patch)
tree410f1f935e549a6335349c5e7fd19fc78c99ed78 /setup-zls.fish
parent36af99cee53fd99d425f0d44e681f5ea13e3974a (diff)
downloadzig-playground-32bb63d22e243d4e1e0998f97b5528ea86e1ae78.tar.gz
zig-playground-32bb63d22e243d4e1e0998f97b5528ea86e1ae78.zip
setup: script to build & setup zls
Diffstat (limited to 'setup-zls.fish')
-rw-r--r--setup-zls.fish14
1 files changed, 14 insertions, 0 deletions
diff --git a/setup-zls.fish b/setup-zls.fish
new file mode 100644
index 0000000..c9e3713
--- /dev/null
+++ b/setup-zls.fish
@@ -0,0 +1,14 @@
+type zig
+or exit 1
+
+if ! test -d zls;
+ git clone https://github.com/zigtools/zls
+end
+git pull
+
+pushd zls
+zig build -Doptimize=ReleaseSafe
+
+echo "SETUP zls"
+fish_add_path --path (pwd)/zig-out/bin
+popd \ No newline at end of file