Feed of "ziglang/zig.vim" https://codeberg.org/ziglang/zig.vim Vim configuration for Zig. Fri, 29 May 2026 01:49:21 +0200 bennyyip created pull request ziglang/zig.vim#126 https://codeberg.org/ziglang/zig.vim/pulls/126 126#Remove wrong escape in zig compiler files# <![CDATA[126#Remove wrong escape in zig compiler files#]]> bennyyip 143364752: https://codeberg.org/ziglang/zig.vim/pulls/126 Mon, 25 May 2026 08:37:57 +0200 mark2185 commented on pull request ziglang/zig.vim#124 https://codeberg.org/ziglang/zig.vim/pulls/124#issuecomment-14667237 Allow the user to specify path to zig executable <blockquote> <p dir="auto">The zig executable will be looked up in the PATH environment variable so can&#39;t you just add the path to it?</p> </blockquote> <![CDATA[Allow the user to specify path to zig executable

The zig executable will be looked up in the PATH environment variable so can't you just add the path to it?

]]>
mark2185 136360623: https://codeberg.org/ziglang/zig.vim/pulls/124#issuecomment-14667237 Mon, 11 May 2026 16:42:59 +0200
Techatrix commented on pull request ziglang/zig.vim#124 https://codeberg.org/ziglang/zig.vim/pulls/124#issuecomment-14666034 Allow the user to specify path to zig executable <p dir="auto">The zig executable will be looked up in the <code>PATH</code> environment variable so can&#39;t you just add the path to it? It&#39;s not really hardcoded because of that.</p> <![CDATA[Allow the user to specify path to zig executable

The zig executable will be looked up in the PATH environment variable so can't you just add the path to it? It's not really hardcoded because of that.

]]>
Techatrix 136344120: https://codeberg.org/ziglang/zig.vim/pulls/124#issuecomment-14666034 Mon, 11 May 2026 16:21:01 +0200
Techatrix pushed to master at ziglang/zig.vim https://codeberg.org/ziglang/zig.vim/commit/29f7a9b8a4e33f936b803de0b713683ad687a6c3 <a href="https://codeberg.org/ziglang/zig.vim/commit/29f7a9b8a4e33f936b803de0b713683ad687a6c3">29f7a9b8a4e33f936b803de0b713683ad687a6c3</a> fix appending undo_ftplugin options <![CDATA[29f7a9b8a4e33f936b803de0b713683ad687a6c3 fix appending undo_ftplugin options]]> Techatrix 133687205: https://codeberg.org/ziglang/zig.vim/commit/29f7a9b8a4e33f936b803de0b713683ad687a6c3 Wed, 06 May 2026 14:11:31 +0200 Techatrix merged pull request ziglang/zig.vim#125 https://codeberg.org/ziglang/zig.vim/pulls/125 fix appending undo_ftplugin options <![CDATA[fix appending undo_ftplugin options]]> Techatrix 133687190: https://codeberg.org/ziglang/zig.vim/pulls/125 Wed, 06 May 2026 14:11:30 +0200 Techatrix approved ziglang/zig.vim#125 https://codeberg.org/ziglang/zig.vim/pulls/125#issuecomment-14380481 fix appending undo_ftplugin options <![CDATA[fix appending undo_ftplugin options]]> Techatrix 133687094: https://codeberg.org/ziglang/zig.vim/pulls/125#issuecomment-14380481 Wed, 06 May 2026 14:11:12 +0200 mark2185 created pull request ziglang/zig.vim#125 https://codeberg.org/ziglang/zig.vim/pulls/125 125#fix appending undo_ftplugin options# <![CDATA[

The current approach results in E488: Trailing characters: sua<setl because setl is not an option.

Can be triggered by opening a zig file and then running :edit %

]]>
mark2185 133667087: https://codeberg.org/ziglang/zig.vim/pulls/125 Wed, 06 May 2026 13:13:01 +0200
mark2185 created pull request ziglang/zig.vim#124 https://codeberg.org/ziglang/zig.vim/pulls/124 124#Allow the user to specify path to zig executable# <![CDATA[

The path to the zig binary is hardcoded, and in case users don't have it (in case they're building from source or some other reason) it can't be configured.

I see there's work on something related here, but by setting the zig_exe_path variable to something nonexistent the check for cwd isn't necessary.

]]>
mark2185 133626677: https://codeberg.org/ziglang/zig.vim/pulls/124 Wed, 06 May 2026 11:55:40 +0200
Techatrix pushed to cwd-zig-exe-injection at ziglang/zig.vim https://codeberg.org/ziglang/zig.vim/commit/9443e82b68bddeb5fe454ad502ecea345d2a7cb8 <a href="https://codeberg.org/ziglang/zig.vim/commit/9443e82b68bddeb5fe454ad502ecea345d2a7cb8">9443e82b68bddeb5fe454ad502ecea345d2a7cb8</a> do not use zig executable in process cwd <![CDATA[9443e82b68bddeb5fe454ad502ecea345d2a7cb8 do not use zig executable in process cwd]]> Techatrix 131794709: https://codeberg.org/ziglang/zig.vim/commit/9443e82b68bddeb5fe454ad502ecea345d2a7cb8 Sat, 02 May 2026 16:45:28 +0200 Techatrix created branch cwd-zig-exe-injection in ziglang/zig.vim https://codeberg.org/ziglang/zig.vim/src/branch/cwd-zig-exe-injection Techatrix 131794703: https://codeberg.org/ziglang/zig.vim/src/branch/cwd-zig-exe-injection Sat, 02 May 2026 16:45:28 +0200 Techatrix pushed to master at ziglang/zig.vim https://codeberg.org/ziglang/zig.vim/compare/84274585e8f6bd99b6bd39731451418bb97ca65d...73f6856496aee1d94884f072dfad18df7977d4e3 <a href="https://codeberg.org/ziglang/zig.vim/commit/73f6856496aee1d94884f072dfad18df7977d4e3">73f6856496aee1d94884f072dfad18df7977d4e3</a> remove fallback definition for compiler makeprg <a href="https://codeberg.org/ziglang/zig.vim/commit/7a896adb7c86a4844053a4c4959f0642e8081379">7a896adb7c86a4844053a4c4959f0642e8081379</a> remove fallback if :CompilerSet is unsupported <a href="https://codeberg.org/ziglang/zig.vim/commit/52a9f464de2befb4ab81cadb1b80232a9bad5b97">52a9f464de2befb4ab81cadb1b80232a9bad5b97</a> keep b:undo_ftplugin in sync <![CDATA[73f6856496aee1d94884f072dfad18df7977d4e3 remove fallback definition for compiler makeprg 7a896adb7c86a4844053a4c4959f0642e8081379 remove fallback if :CompilerSet is unsupported 52a9f464de2befb4ab81cadb1b80232a9bad5b97 keep b:undo_ftplugin in sync]]> Techatrix 131794655: https://codeberg.org/ziglang/zig.vim/compare/84274585e8f6bd99b6bd39731451418bb97ca65d...73f6856496aee1d94884f072dfad18df7977d4e3 Sat, 02 May 2026 16:45:20 +0200 Techatrix merged pull request ziglang/zig.vim#122 https://codeberg.org/ziglang/zig.vim/pulls/122 update builtins for 0.16.0 <![CDATA[update builtins for 0.16.0]]> Techatrix 131411672: https://codeberg.org/ziglang/zig.vim/pulls/122 Fri, 01 May 2026 22:50:57 +0200 Techatrix pushed to master at ziglang/zig.vim https://codeberg.org/ziglang/zig.vim/commit/84274585e8f6bd99b6bd39731451418bb97ca65d <a href="https://codeberg.org/ziglang/zig.vim/commit/84274585e8f6bd99b6bd39731451418bb97ca65d">84274585e8f6bd99b6bd39731451418bb97ca65d</a> update builtins for 0.16.0 <![CDATA[84274585e8f6bd99b6bd39731451418bb97ca65d update builtins for 0.16.0]]> Techatrix 131411480: https://codeberg.org/ziglang/zig.vim/commit/84274585e8f6bd99b6bd39731451418bb97ca65d Fri, 01 May 2026 22:50:49 +0200 Techatrix approved ziglang/zig.vim#122 https://codeberg.org/ziglang/zig.vim/pulls/122#issuecomment-14159138 update builtins for 0.16.0 <![CDATA[update builtins for 0.16.0]]> Techatrix 131411402: https://codeberg.org/ziglang/zig.vim/pulls/122#issuecomment-14159138 Fri, 01 May 2026 22:50:35 +0200 nhawke created pull request ziglang/zig.vim#123 https://codeberg.org/ziglang/zig.vim/pulls/123 123#Split stderr and stdout in formatting logic# <![CDATA[

Fixes #112

By default, vim's system() and systemlist() combine the stderr and
stdout due to the default value of shellredir. This means that drop-in
replacements for zig fmt (e.g. anyzig) will include debug information
along with the successfully-formatted file, even if that debug
information is printed to stderr.

This changes the script to save stdout and stderr separately, which
avoids this class of problems.

]]>
nhawke 130961624: https://codeberg.org/ziglang/zig.vim/pulls/123 Fri, 01 May 2026 05:00:06 +0200
manliop commented on pull request ziglang/zig.vim#121 https://codeberg.org/ziglang/zig.vim/pulls/121#issuecomment-14041802 Disable colors <p dir="auto">This is my and archlinux configuration:</p> <![CDATA[Disable colors

This is my and archlinux configuration:

]]>
manliop 130466150: https://codeberg.org/ziglang/zig.vim/pulls/121#issuecomment-14041802 Thu, 30 Apr 2026 10:56:36 +0200
jpk68 commented on pull request ziglang/zig.vim#122 https://codeberg.org/ziglang/zig.vim/pulls/122#issuecomment-14034221 update builtins for 0.16.0 <p dir="auto"><a href="/Techatrix" class="mention" rel="nofollow">@Techatrix</a> wrote in <a href="https://codeberg.org/ziglang/zig.vim/pulls/122#issuecomment-13996328" class="ref-issue" rel="nofollow">#122 (comment)</a>:</p> <![CDATA[update builtins for 0.16.0

@Techatrix wrote in #122 (comment):

]]>
jpk68 130370006: https://codeberg.org/ziglang/zig.vim/pulls/122#issuecomment-14034221 Thu, 30 Apr 2026 05:01:02 +0200
manliop commented on pull request ziglang/zig.vim#121 https://codeberg.org/ziglang/zig.vim/pulls/121#issuecomment-14008832 Disable colors <p dir="auto">I don&#39;t remember when this issue started.</p> <![CDATA[Disable colors

I don't remember when this issue started.

]]>
manliop 130191887: https://codeberg.org/ziglang/zig.vim/pulls/121#issuecomment-14008832 Wed, 29 Apr 2026 19:17:08 +0200
Techatrix commented on pull request ziglang/zig.vim#121 https://codeberg.org/ziglang/zig.vim/pulls/121#issuecomment-13997831 Disable colors <p dir="auto">I tested a stock vim configuration without this change and observed no escape codes in the <code>:make build</code> and fmt autosave output. Could you explain in more detail how you managed to observe the issue you are trying to fix here. Reproduction steps (e.g. OS, vim config, commands) would be greatly appreciated.</p> <![CDATA[Disable colors

I tested a stock vim configuration without this change and observed no escape codes in the :make build and fmt autosave output. Could you explain in more detail how you managed to observe the issue you are trying to fix here. Reproduction steps (e.g. OS, vim config, commands) would be greatly appreciated.

]]>
Techatrix 130076969: https://codeberg.org/ziglang/zig.vim/pulls/121#issuecomment-13997831 Wed, 29 Apr 2026 15:36:55 +0200
Techatrix suggested changes for ziglang/zig.vim#122 https://codeberg.org/ziglang/zig.vim/pulls/122#issuecomment-13996328 update builtins for 0.16.0 <p dir="auto">The more reliable source for the set of builtins can be taken from the Zig codebase directly in <a href="https://codeberg.org/ziglang/zig/src/branch/master/lib/std/zig/BuiltinFn.zig" rel="nofollow">std.zig.BuiltinFn</a>. This will include builtins like <code>@disableInstrumentation</code> and <code>@disableIntrinsics</code> that are currently undocumented in the language reference. These two should be added back. The rest of the changes are fine.</p> <![CDATA[update builtins for 0.16.0

The more reliable source for the set of builtins can be taken from the Zig codebase directly in std.zig.BuiltinFn. This will include builtins like @disableInstrumentation and @disableIntrinsics that are currently undocumented in the language reference. These two should be added back. The rest of the changes are fine.

]]>
Techatrix 130058168: https://codeberg.org/ziglang/zig.vim/pulls/122#issuecomment-13996328 Wed, 29 Apr 2026 15:07:45 +0200
jpk68 created pull request ziglang/zig.vim#122 https://codeberg.org/ziglang/zig.vim/pulls/122 122#update builtins for 0.16.0# <![CDATA[

Updates syntax highlighting of builtin functions for version 0.16.0, using this as a source of truth.

]]>
jpk68 129080030: https://codeberg.org/ziglang/zig.vim/pulls/122 Mon, 27 Apr 2026 17:41:52 +0200
manliop created pull request ziglang/zig.vim#121 https://codeberg.org/ziglang/zig.vim/pulls/121 121#Disable colors# <![CDATA[

The Zig compiler enables colors by default, but this is a problem for
Vim, since the error message buf shows the ANSI escape codes.

Disable colors by setting the NO_COLOR environment variable in ftplugin.
Since the environment variable is internal to Vim, it will not disable
colors when using a terminal.

]]>
manliop 127767440: https://codeberg.org/ziglang/zig.vim/pulls/121 Fri, 24 Apr 2026 12:20:26 +0200
Techatrix commented on issue ziglang/zig.vim#112 https://codeberg.org/ziglang/zig.vim/issues/112#issuecomment-13541402 unable to use anyzig together with zig.vim <p dir="auto">It is perfectly reasonable for a CLI applicaton like <code>zig fmt</code> to write to stderr while expecting the parent process to ignore it on success. It should not be up to anzig or it&#39;s users to disable the debug output to become usable with zig.vim. This is just a bug in zig.vim that should be fixed.</p> <![CDATA[unable to use anyzig together with zig.vim

It is perfectly reasonable for a CLI applicaton like zig fmt to write to stderr while expecting the parent process to ignore it on success. It should not be up to anzig or it's users to disable the debug output to become usable with zig.vim. This is just a bug in zig.vim that should be fixed.

]]>
Techatrix 126936203: https://codeberg.org/ziglang/zig.vim/issues/112#issuecomment-13541402 Wed, 22 Apr 2026 16:22:49 +0200
nhawke commented on issue ziglang/zig.vim#112 https://codeberg.org/ziglang/zig.vim/issues/112#issuecomment-13527713 unable to use anyzig together with zig.vim <p dir="auto">I left <a href="https://github.com/marler8997/anyzig/issues/20#issuecomment-4294062627" rel="nofollow">a comment</a> over on the anyzig issue about this.</p> <![CDATA[unable to use anyzig together with zig.vim

I left a comment over on the anyzig issue about this.

]]>
nhawke 126716738: https://codeberg.org/ziglang/zig.vim/issues/112#issuecomment-13527713 Wed, 22 Apr 2026 08:39:21 +0200
Techatrix merged pull request ziglang/zig.vim#120 https://codeberg.org/ziglang/zig.vim/pulls/120 Fix typo <![CDATA[Fix typo]]> Techatrix 122651313: https://codeberg.org/ziglang/zig.vim/pulls/120 Mon, 13 Apr 2026 19:35:56 +0200 Techatrix pushed to master at ziglang/zig.vim https://codeberg.org/ziglang/zig.vim/commit/30a1634b3a4193290dc3aad8f84c53b353b1d80f <a href="https://codeberg.org/ziglang/zig.vim/commit/30a1634b3a4193290dc3aad8f84c53b353b1d80f">30a1634b3a4193290dc3aad8f84c53b353b1d80f</a> fix typo in ftplugin/zig.vim (#120) <![CDATA[30a1634b3a4193290dc3aad8f84c53b353b1d80f fix typo in ftplugin/zig.vim (#120)]]> Techatrix 122651286: https://codeberg.org/ziglang/zig.vim/commit/30a1634b3a4193290dc3aad8f84c53b353b1d80f Mon, 13 Apr 2026 19:35:56 +0200 Techatrix approved ziglang/zig.vim#120 https://codeberg.org/ziglang/zig.vim/pulls/120#issuecomment-13077030 Fix typo <![CDATA[Fix typo]]> Techatrix 122651175: https://codeberg.org/ziglang/zig.vim/pulls/120#issuecomment-13077030 Mon, 13 Apr 2026 19:35:18 +0200 jpk68 created pull request ziglang/zig.vim#120 https://codeberg.org/ziglang/zig.vim/pulls/120 120#Fix typo# <![CDATA[

Fixes a small typo in the comments of filetype plugin code.

]]>
jpk68 121925622: https://codeberg.org/ziglang/zig.vim/pulls/120 Sun, 12 Apr 2026 01:16:17 +0200
jparise commented on pull request ziglang/zig.vim#119 https://codeberg.org/ziglang/zig.vim/pulls/119#issuecomment-12654249 Wrap b:undo_ftplugin's :au! in :exe, use * again <p dir="auto"><span class="emoji" aria-label="waving hand" data-alias="wave">👋</span> This works well. Thanks for tracking down the root cause, <a href="/seandewar" class="mention" rel="nofollow">@seandewar</a>!</p> <![CDATA[Wrap b:undo_ftplugin's :au! in :exe, use * again

👋 This works well. Thanks for tracking down the root cause, @seandewar!

]]>
jparise 119022156: https://codeberg.org/ziglang/zig.vim/pulls/119#issuecomment-12654249 Sat, 04 Apr 2026 19:20:01 +0200
Techatrix pushed to master at ziglang/zig.vim https://codeberg.org/ziglang/zig.vim/commit/9e76c2843f6292dc9c804996d78244fe1028891a <a href="https://codeberg.org/ziglang/zig.vim/commit/9e76c2843f6292dc9c804996d78244fe1028891a">9e76c2843f6292dc9c804996d78244fe1028891a</a> Wrap b:undo_ftplugin&#39;s :au! in :exe, use * again <![CDATA[9e76c2843f6292dc9c804996d78244fe1028891a Wrap b:undo_ftplugin's :au! in :exe, use * again]]> Techatrix 118945473: https://codeberg.org/ziglang/zig.vim/commit/9e76c2843f6292dc9c804996d78244fe1028891a Sat, 04 Apr 2026 15:36:37 +0200