summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--setup-zls.fish14
2 files changed, 15 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index ed0b820..053939a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
zig-linux-x86_64-0.*
+zls
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