diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-12-18 22:45:28 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2025-02-07 21:54:55 +0100 |
commit | 801eec8df98c31f3fc29baeb87dc4deadf813486 (patch) | |
tree | b79a60764f8bb1919c9cb29fe6c3676ac4c1b6cc /setup-zls.fish | |
parent | 139acf27d71e54f57f69659c9423f31e5b848c21 (diff) | |
download | zig-playground-801eec8df98c31f3fc29baeb87dc4deadf813486.tar.gz zig-playground-801eec8df98c31f3fc29baeb87dc4deadf813486.zip |
setup: script to build & setup zls
Diffstat (limited to 'setup-zls.fish')
-rw-r--r-- | setup-zls.fish | 14 |
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 |