Skip to content

Commit

Permalink
update to Zine 0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Sep 8, 2024
1 parent 3092467 commit b5cb20d
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 10 deletions.
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
.minimum_zig_version = "0.13.0",
.dependencies = .{
.zine = .{
.url = "git+https://github.com/kristoff-it/zine?ref=v0.4.5#dc7e4d32b3002fa88220277d5a08e53b8435a651",
.hash = "1220b73876d68d561d9bbe2146784949f2b96bbab4adf5b8da2d8e8e9709e1893a2e",
.url = "git+https://github.com/kristoff-it/zine?ref=v0.6.1#872c474b33dab2dd35e37bcf156149d20498197c",
.hash = "1220a59c2cf0e42a6f42cf1bf9b6a6c2691abfd91fcafa0e81a6282c4a197d05c41a",
},
},
.paths = .{
Expand Down
12 changes: 8 additions & 4 deletions content/index.md → content/index.smd
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

ZLS is a non-official implementation of the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/) for [Zig](https://ziglang.org/) in [Zig](https://ziglang.org/). It provides developers with IDE features in their editor.

- [Installation Guide](zls/install/index.html)
- [Releases](zls/releases/)
- [Installation Guide](/zls/install/)
- [Releases](/zls/releases/)
- [GitHub](https://github.com/zigtools/zls)
- [Discord Server](https://discord.gg/5m5U3qpUhk)

Expand All @@ -27,15 +27,19 @@ A demonstration of Zig and ZLS running inside of a browser using Webassembly.

zig-lsp-codegen provides all necessary building blocks to develop [Language Server Protocol](https://microsoft.github.io/language-server-protocol/) implementations (like ZLS) in [Zig](https://ziglang.org/).

- [GitHub](https://github.com/zigtools/zig-lsp-codegen)

```=html
<!-- https://github.com/kristoff-it/ziggy Soon™ -->
<!-- https://github.com/kristoff-it/superhtml Soon™ -->
```

- [GitHub](https://github.com/zigtools/zig-lsp-codegen)

```=html
<!--
SECRET MESSAGE
- do not refer to ZLS as **the** language server or LSP
- prefer saying "ZLS" over "Zig language server"

This is to avoid implying that ZLS is the official LSP for Zig.
-->
```
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@

We'd like to take a second to thank all our awesome [contributors](https://github.com/zigtools/zls/graphs/contributors) and donators/backers/sponsors; if you have time or money to spare, consider partaking in either of these options - they help keep ZLS awesome for everyone!

[![OpenCollective Backers](https://opencollective.com/zigtools/backers.svg?width=890&limit=1000)](https://opencollective.com/zigtools#category-CONTRIBUTE)
```=html
<a href="https://opencollective.com/zigtools#category-CONTRIBUTE"><img src="https://opencollective.com/zigtools/backers.svg?width=890&limit=1000" alt="OpenCollective Backers"></a>
```

**Full Changelog**: [0.9.0...0.10.0](https://github.com/zigtools/zls/compare/0.9.0...0.10.0)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@

We'd like to take a second to thank all our awesome [contributors](https://github.com/zigtools/zls/graphs/contributors) and donators/backers/sponsors; if you have time or money to spare, consider partaking in either of these options - they help keep ZLS awesome for everyone!

[![OpenCollective Backers](https://opencollective.com/zigtools/backers.svg?width=890&limit=1000)](https://opencollective.com/zigtools#category-CONTRIBUTE)
```=html
<a href="https://opencollective.com/zigtools#category-CONTRIBUTE"><img src="https://opencollective.com/zigtools/backers.svg?width=890&limit=1000" alt="OpenCollective Backers"></a>
```

**Full Changelog**: [0.10.0...0.11.0](https://github.com/zigtools/zls/compare/0.10.0...0.11.0)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
}
---

```=html
<style>
/** There should be proper light-mode versions of every image but this gave surprisingly good results. */
@media (prefers-color-scheme: light) {
Expand All @@ -15,15 +16,19 @@
}
}
</style>
```

## Feature improvements

### New Type Hints ([#1444](https://github.com/zigtools/zls/pull/1444)) ([#1512](https://github.com/zigtools/zls/pull/1512)) ([#1778](https://github.com/zigtools/zls/pull/1778))

```=html
<!-- thank you @Koranir and @nullptrdev -->
```

New inlay hints have been added for variable declarations, captured values and struct literal fields.

```=html
<!--
const std = @import("std");

Expand All @@ -38,6 +43,7 @@ pub fn main() !void {
}
}
-->
```

![new type hints](new-type-hints.png)

Expand Down Expand Up @@ -111,18 +117,24 @@ Completions inside an `@import` will include the `std` and `builtin` module with

A config option in Vim/Neovim depends on the LSP or completion plugin being used.


```=html
<!-- https://invent.kde.org/utilities/kate/-/blob/master/addons/lspclient/lspclientcompletion.cpp -->
```

Kate Editor has a config option for this feature `Configure` -> `Editing` -> `Auto Completion` -> `Auto word completion` -> `Remove tail on complete` but it does not use ZLS.

#### completions for function aliases with self parameters ([#1656](https://github.com/zigtools/zls/pull/1656))

```=html
<!-- thank you @nolanderc -->
```

Declarations to function alias that take a self parameter are now included when providing completions on member access.

The following example would previously not give any completions.

```=html
<!--
const Foo = struct {
const alias = func;
Expand All @@ -135,6 +147,7 @@ test {
foo.
}
-->
```

![completions on function alias](completions-on-function-alias.png)

Expand Down Expand Up @@ -172,7 +185,9 @@ When your editor does not support displaying a message window, you will still fi

#### autofix disabled by default

```=html
<!-- @Techatrix **sad autofix noises** -->
```

The autofix feature is now disabled by default. ([#1657](https://github.com/zigtools/zls/pull/1657))

Expand All @@ -194,7 +209,9 @@ This options served as a workaround for an issue with long completion detail ent

### Performance

```=html
<!-- thank you @SuperAuguste -->
```

The [DocumentScope](https://github.com/zigtools/zls/blob/master/src/DocumentScope.zig) is an internal datastructure of ZLS that keeps track of variables, declarations and their scopes. Most analysis relies on it to perform symbol lookups, iterate symbols or quickly traverse scopes. Every time a document is modified, the DocumentScope is rebuilt for the entire document so it has been rewritten with Data-oriented design principles in mind to reduce its performance footprint. ([#1517](https://github.com/zigtools/zls/pull/1517))

Expand Down Expand Up @@ -251,7 +268,9 @@ When encountering issues, do not hesitate to report your issues on the [Github i

We'd like to take a second to thank all our awesome [contributors](https://github.com/zigtools/zls/graphs/contributors) and donators/backers/sponsors; if you have time or money to spare, consider partaking in either of these options - they help keep ZLS awesome for everyone!

[![OpenCollective Backers](https://opencollective.com/zigtools/backers.svg?width=890&limit=1000)](https://opencollective.com/zigtools#category-CONTRIBUTE)
```=html
<a href="https://opencollective.com/zigtools#category-CONTRIBUTE"><img src="https://opencollective.com/zigtools/backers.svg?width=890&limit=1000" alt="OpenCollective Backers"></a>
```

**Full Changelog**: [0.11.0...0.12.0](https://github.com/zigtools/zls/compare/0.11.0...0.12.0)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ This release is meant to provide compatibility with Zig 0.13.0

We'd like to take a second to thank all our awesome [contributors](https://github.com/zigtools/zls/graphs/contributors) and donators/backers/sponsors; if you have time or money to spare, consider partaking in either of these options - they help keep ZLS awesome for everyone!

[![OpenCollective Backers](https://opencollective.com/zigtools/backers.svg?width=890&limit=1000)](https://opencollective.com/zigtools#category-CONTRIBUTE)
```=html
<a href="https://opencollective.com/zigtools#category-CONTRIBUTE"><img src="https://opencollective.com/zigtools/backers.svg?width=890&limit=1000" alt="OpenCollective Backers"></a>
```

**Full Changelog**: [0.12.0...0.13.0](https://github.com/zigtools/zls/compare/0.12.0...0.13.0)

Expand Down
File renamed without changes.

0 comments on commit b5cb20d

Please sign in to comment.