2023-02-01 19:11:37 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; {
|
|
|
|
config = {
|
|
|
|
vim.statusline.lualine = {
|
|
|
|
enable = mkDefault false;
|
|
|
|
|
|
|
|
icons = mkDefault true;
|
|
|
|
theme = mkDefault "auto";
|
|
|
|
sectionSeparator = {
|
|
|
|
left = mkDefault "";
|
|
|
|
right = mkDefault "";
|
|
|
|
};
|
|
|
|
|
|
|
|
componentSeparator = {
|
2023-02-03 18:50:06 +00:00
|
|
|
left = mkDefault "";
|
|
|
|
right = mkDefault "";
|
2023-02-01 19:11:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
activeSection = {
|
2023-02-03 18:50:06 +00:00
|
|
|
# left side of the statusline 4
|
2023-02-01 19:11:37 +00:00
|
|
|
a = mkDefault "{'mode'}";
|
2023-02-03 18:50:06 +00:00
|
|
|
b = mkDefault ''
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"filename",
|
|
|
|
color = {bg='none'},
|
|
|
|
symbols = {modified = '', readonly = ''},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
c = mkDefault ''
|
2023-02-01 19:11:37 +00:00
|
|
|
{
|
|
|
|
{
|
|
|
|
"branch",
|
2023-02-03 18:50:06 +00:00
|
|
|
icon = ' •',
|
|
|
|
separator = { left = '(', right = ')'},
|
2023-02-01 19:11:37 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
'';
|
2023-02-03 18:50:06 +00:00
|
|
|
# right side of the statusline (x, y, z)
|
2023-02-01 19:11:37 +00:00
|
|
|
x = mkDefault ''
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"diagnostics",
|
2023-02-03 18:50:06 +00:00
|
|
|
sources = {'nvim_lsp', 'nvim_diagnostic'},
|
|
|
|
symbols = {error = '', warn = '', info = '', hint = ''}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
y = mkDefault ''
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"fileformat",
|
|
|
|
color = {bg='none'}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
z = mkDefault ''
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"progress",
|
|
|
|
color = {
|
|
|
|
bg='none',
|
|
|
|
fg='lavender'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"location",
|
|
|
|
color = {bg='none', fg='lavender'},
|
2023-02-01 19:11:37 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"filetype",
|
2023-02-03 18:50:06 +00:00
|
|
|
color = {bg='none', fg='lavender'},
|
2023-02-01 19:11:37 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
inactiveSection = {
|
|
|
|
a = mkDefault "{}";
|
|
|
|
b = mkDefault "{}";
|
|
|
|
c = mkDefault "{'filename'}";
|
|
|
|
x = mkDefault "{'location'}";
|
|
|
|
y = mkDefault "{}";
|
|
|
|
z = mkDefault "{}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|