current
1{
2 den.aspects.dev.provides.helix.homeManager = _: {
3 programs.helix.languages = {
4 language = [
5 {
6 name = "lua";
7 auto-format = true;
8 indent = {
9 tab-width = 2;
10 unit = " ";
11 };
12 formatter = {
13 command = "stylua";
14 args = [
15 "--indent-width"
16 "2"
17 "--syntax=Lua54"
18 "--respect-ignores"
19 "--sort-requires"
20 "--stdin-filepath"
21 "%{buffer_name}"
22 "-" # From stdin
23 ];
24 };
25 roots = [
26 "stylua.toml"
27 ".stylua.toml"
28 ".editorconfig"
29 ];
30 language-servers = ["lua-language-server"];
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 };
42}