zig.vim
zig.vim copied to clipboard
Vim configuration for Zig
There should be a special highlight group for the error set operator (!) and the optional operator (?). I propose the names `zigErrorSet` and `zigOptional` for these highlight groups. Ideally...
With `zig_fmt_autosave` enabled, the following file causes an error to be raised on save. ```zig const std = @import("std"); test "format bug" { std.debug.print("Hello, World!",); } ``` The error: ```...
I'm using https://github.com/antoyo/vim-licenses with vim, and when I try to add the license notice at the top of the file, vim uses the incorrect `\\` used for multiline strings, instead...
By "lone" else lines, I mean lines in if statements that only have whitespace and the `else` keyword. They're usually around when there is a multi-line if condition that isn't...
```zig const foo = enum { u8, isize, noreturn, aeouaoeu, }; ``` These are all valid field identifiers that do not clash against identifiers in the main namespace.
After opening a .zig file, line 40 of fplugin/zig.vim clobbers the path variable causing the vim fuzzy finder (:find) to start looking in the std lib directory instead of the...
So, when I open a .zig file, something happens with my shell. I'm using starship on top of fish, and its configuring to run pfetch when it starts up. The...
An attempt on fixing what https://github.com/ziglang/zig.vim/issues/42 reports. I'm not yet sure if this fully fixes the issue. I'll be testing it more on the following days and will report any...
Before anything, a minimal vimrc: ``` set nocompatible " set runtimepath^=/path/to/zig.vim syntax on filetype plugin indent on ``` And my neovim version: ``` $ nvim --version NVIM v0.4.4 Build type:...
As discussed in the Zig Programming Language Discord, I have been working on rewriting the entire zig.vim plugin from scratch. This pull request contains all of the improvements I have...