neovim: center filename with lualine

This commit is contained in:
ooks-io 2025-01-07 16:26:14 +11:00
parent b0cfbf184f
commit 4c08871afe
2 changed files with 67 additions and 2 deletions

View file

@ -28,7 +28,18 @@
}
''
];
c = ["filename"];
c = [
#lua
''
"%=",
{
"filename",
symbols = {modified = ' ', readonly = ' '},
separator = {right = ' '},
path = 1,
}
''
];
x = [
# lua
''
@ -47,6 +58,61 @@
}
''
];
y = [
#lua
''
{
"",
draw_empty = true,
separator = { left = ' ', right = ' ' }
}
''
''
{
'searchcount',
maxcount = 999,
timeout = 120,
separator = {left = ' '}
}
''
''
{
"branch",
icon = ' ',
separator = {left = ' '}
}
''
];
z = [
#lua
''
{
"",
draw_empty = true,
separator = { left = ' ', right = ' ' }
}
''
''
{
"progress",
separator = {left = ' '}
}
''
''
{"location"}
''
''
{
"fileformat",
color = {fg='black'},
symbols = {
unix = '', -- e712
dos = '', -- e70f
mac = '', -- e711
}
}
''
];
};
};
}

View file

@ -1,7 +1,6 @@
{
config,
lib,
inputs,
pkgs,
...
}: let