zls
zls copied to clipboard
A language server for Zig supporting developers with features like autocomplete and goto definition
In `Something.zig`: ```zig //! top level comment /// inner comment a: i32 ``` In `main.zig`: ```zig const Something = @import("Something.zig"); pub fn main() void { const some = Something {...
Editor: **neovim 0.5** Plugins: **nvim-lspconfig**, **nvim-compe** When on hover, pointers `*hello_ptr` renders as the start of a bold. And the pointer is simply not shown. Maybe consider using `\\*`. If...
I often find myself wanting to find references from, going to definitions in, or renaming definitions in files which aren't open yet − which ZLS currently cannot do. It may...
I use `eglot` instead of `lsp-mode` in emacs. I'd like to run `zls` the way I run other language servers, e.g. `(add-to-list 'eglot-server-programs '(zig-mode "path/to/zls"))`. If I understand `eglot` correctly,...
I'm using the `zig` version from the snap store, which is 0.7.1. This version is not able to build the master branch of `zls`. I'm now using 82d6258 and can...
I've got some autogenerated Zig files that contain a UTF-8 BOM. The BOM for UTF-8 is `0xef 0xbb 0xbf` (see https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8). It looks like this confuses ZLS because the syntax...
Sooner or later we will need to add tests to check for regressions. I propose the following three kinds of tests: - Function unit tests (mainly for the parsing functions)...
I wonder why vector definitions isn't exists in std ast. :confused:
It'd be neat if, for instance, the following was autocompleted: ```zig a = b catch ``` Some useful autocompletions would be `unreachable`, `|err| switch (err)`, and so on.
This was suggested by somebody in the Zig Discord. Examples would include: * "Name not defined" errors * "Name redefined" errors etc..