ZLS version is for 0.12.0 (I put in into PATH and lua script and checked if some plugin puts builtin LSP which I dont need).
In config_gen/config.json:
{
"name": "enable_autofix",
"description": "Whether to automatically fix errors on save. Currently supports adding and removing discards.",
"type": "bool",
"default": false
},
And it still compresses my struct into a single line:
//before
const Container = struct {
childs: std.ArrayList(),
content: []u8
};
//after saving
const Container = struct { childs: std.ArrayList(), content: []u8 };
I tried to configure it in init.lua (I installed kickstart and did almost no changes):
zls = {
cmd = { 'C:/zig/lsp/1.12.0/zig-out/bin/zls.exe' },
settings = {
Lua = {
format_on_save = false,
},
},
},
And copypasted in Autoformat section right after lua’s formater
It is better if I fix it not only for nvim, but in ZLS config or whatever