Closed pepijno closed 3 years ago
When commenting lines in a zig file the comment style used is /* ... */ but zig comments should use // ....
/* ... */
// ...
You can change this with ftplugin. Create a file called zig.lua inside ~/.config/nvim/after/ftplugin/ and add this line to it: vim.cmd[[setlocal commentstring=//\ %s]]
Thanks! That did the trick.
When commenting lines in a zig file the comment style used is
/* ... */
but zig comments should use// ...
.