Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit 1b0dc83

Browse files
committed
🔧 (lualine): migrate to new syntax
1 parent 6105edc commit 1b0dc83

1 file changed

Lines changed: 103 additions & 105 deletions

File tree

config/plug/statusline/lualine.nix

Lines changed: 103 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -5,126 +5,124 @@ in
55
{
66
plugins.lualine = {
77
enable = true;
8-
globalstatus = true;
9-
disabledFiletypes = {
10-
statusline = [
11-
"dashboard"
12-
"alpha"
13-
"starter"
14-
];
15-
};
16-
theme = {
17-
normal = {
18-
a = {
19-
bg = "#nil";
20-
};
21-
b = {
22-
bg = "nil";
23-
};
24-
c = {
25-
bg = "nil";
26-
};
27-
z = {
28-
bg = "nil";
8+
settings = {
9+
options = {
10+
theme = {
11+
normal = {
12+
a = {
13+
bg = "#nil";
14+
};
15+
b = {
16+
bg = "nil";
17+
};
18+
c = {
19+
bg = "nil";
20+
};
21+
z = {
22+
bg = "nil";
23+
};
24+
y = {
25+
bg = "nil";
26+
};
27+
};
2928
};
30-
y = {
31-
bg = "nil";
29+
globalstatus = true;
30+
disabled_filetypes = {
31+
statusline = [
32+
"dashboard"
33+
"alpha"
34+
"starter"
35+
];
3236
};
3337
};
34-
};
35-
inactiveSections = {
36-
lualine_x = [
37-
"filename"
38-
"filetype"
39-
];
40-
};
41-
sections = {
42-
lualine_a = [
43-
{
44-
name = "mode";
45-
fmt = "string.lower";
46-
color = {
47-
fg = if config.colorschemes.base16.enable then colors.base04 else "nil";
48-
bg = "nil";
49-
};
50-
separator.left = "";
51-
separator.right = "";
52-
}
53-
];
54-
lualine_b = [
55-
{
56-
name = "branch";
57-
icon = "";
58-
color = {
59-
fg = if config.colorschemes.base16.enable then colors.base04 else "nil";
60-
bg = "nil";
61-
};
62-
separator.left = "";
63-
separator.right = "";
64-
}
65-
{
66-
name = "diff";
67-
separator.left = "";
68-
separator.right = "";
69-
}
70-
];
71-
lualine_c = [
72-
{
73-
name = "diagnostic";
74-
extraConfig = {
38+
inactive_sections = {
39+
lualine_x = [
40+
"filename"
41+
"filetype"
42+
];
43+
};
44+
sections = {
45+
lualine_a = [
46+
{
47+
__unkeyed = "mode";
48+
fmt = "string.lower";
49+
color = {
50+
fg = colors.base04;
51+
bg = "nil";
52+
};
53+
separator.left = "";
54+
separator.right = "";
55+
}
56+
];
57+
lualine_b = [
58+
{
59+
__unkeyed = "branch";
60+
icon.__unkeyed = "";
61+
color = {
62+
fg = colors.base04;
63+
bg = "nil";
64+
};
65+
separator.left = "";
66+
separator.right = "";
67+
}
68+
{
69+
__unkeyed = "diff";
70+
separator.left = "";
71+
separator.right = "";
72+
}
73+
];
74+
lualine_c = [
75+
{
76+
__unkeyed = "diagnostic";
7577
symbols = {
7678
error = " ";
7779
warn = " ";
7880
info = " ";
7981
hint = "󰝶 ";
8082
};
81-
};
82-
color = {
83-
fg = if config.colorschemes.base16.enable then colors.base08 else "nil";
84-
bg = "nil";
85-
};
86-
separator.left = "";
87-
separator.right = "";
88-
}
89-
];
90-
lualine_x = [ "" ];
91-
lualine_y = [
92-
{
93-
name = "filetype";
94-
extraConfig = {
83+
color = {
84+
fg = colors.base08;
85+
bg = "nil";
86+
};
87+
separator.left = "";
88+
separator.right = "";
89+
}
90+
];
91+
lualine_x = [ "" ];
92+
lualine_y = [
93+
{
94+
__unkeyed = "filetype";
9595
icon_only = true;
96-
};
97-
separator.left = "";
98-
separator.right = "";
99-
}
100-
{
101-
name = "filename";
102-
extraConfig = {
96+
separator.left = "";
97+
separator.right = "";
98+
}
99+
{
100+
__unkeyed = "filename";
103101
symbols = {
104102
modified = "";
105103
readonly = "👁️";
106104
unnamed = "";
107105
};
108-
};
109-
color = {
110-
fg = if config.colorschemes.base16.enable then colors.base05 else "nil";
111-
bg = "nil";
112-
};
113-
separator.left = "";
114-
separator.right = "";
115-
}
116-
];
117-
lualine_z = [
118-
{
119-
name = "location";
120-
color = {
121-
fg = if config.colorschemes.base16.enable then colors.base0B else "nil";
122-
bg = "nil";
123-
};
124-
separator.left = "";
125-
separator.right = "";
126-
}
127-
];
106+
color = {
107+
fg = colors.base05;
108+
bg = "nil";
109+
};
110+
separator.left = "";
111+
separator.right = "";
112+
}
113+
];
114+
lualine_z = [
115+
{
116+
__unkeyed = "location";
117+
color = {
118+
fg = colors.base0B;
119+
bg = "nil";
120+
};
121+
separator.left = "";
122+
separator.right = "";
123+
}
124+
];
125+
};
128126
};
129127
};
130128
}

0 commit comments

Comments
 (0)