Hey everyone, so I am pretty new to Zig, but really trying to get into it, unfortunately everytime I save a zig file, it appends the contents of the directory that the zig program is in to the top of the program file. I use neovim, and I thought it may be a plugin acting up or something similar, so I tried Neovim without a config, and without any plugins, and it’s still doing it. Has anyone had any similar issues? I’m using the latest zig version as well.
Never seen that, but I noticed that somehow a neovim plugin is automatically installed which runs zig fmt on save, and I have no idea how that happend …I’m definitely not a fan of any software automatically installing neovim plugins though.
Ya, it’s super weird, super weird i’ve tried everything, I don’t know if i could even code outside of Neovim, so it’s definitely stunk because I’m super interested in Zig, and i feel helpless, and i’ve tried everything I feel like! ><
Sadly, yes :(, so I created deny.zig, and then added the const foo = 1; and when I saved the file, it appended, actually not just the directory structure but > bin completion.bash.inc completion.zsh.inc data deb install.bat install.sh lib LICENSE path.bash.inc path.fish.inc path.zsh.inc platform properties README RELEASE_NOTES rpm VERSION build.zig build.zig.zon confirm.zig deny.zig src I echo’d const foo = 1 into a zig file, and then ran zig fmt on that file, and it didn’t append the contents, so it has to be some kind of neovim issue…i just can’t figure out what it is, begins even when I run neovim bare bones, it still does it…it’s really got my mind spinning.