old
 1{...}: {
 2  programs.helix.languages = {
 3    language = [
 4      {
 5        name = "lua";
 6        auto-format = true;
 7        indent = {
 8          tab-width = 2;
 9          unit = "  ";
10        };
11        formatter = {
12          command = "stylua";
13          args = [
14            "--indent-type"
15            "Spaces"
16            "--indent-width"
17            "2"
18            "--column-width"
19            "80"
20            "--call-parentheses"
21            "NoSingleTable"
22            "--sort-requires"
23            "-" # From stdin
24          ];
25        };
26        roots = [
27          "stylua.toml"
28          ".stylua.toml"
29          ".editorconfig"
30        ];
31      }
32    ];
33    language-server.lua-language-server = {
34      command = "lua-language-server";
35      args = ["--locale=zh-cn"];
36      config.Lua = {
37        format.enable = false;
38      };
39    };
40  };
41}