WIP: lualine

This commit is contained in:
punkfairie 2024-11-27 20:28:15 -08:00
parent 1a9b9bc43b
commit 6b27c39f5d
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696

View file

@ -0,0 +1,36 @@
_: {
plugins.lualine = {
enable = true;
luaConfig.pre.__raw = ''
vim.g.lualine_laststatus = vim.o.laststatus
if vim.fn.argc(-1) > 0 then
-- set an empty statusline till lualine loads
vim.o.statusline = " "
else
-- hide the statusline on the starter page
vim.o.laststatus = 0
end
'';
settings = {
options = {
theme = "auto";
globalstatus.__raw = "vim.o.laststatus == 3";
disabled_filetypes.statusline = [
"dashboard"
"alpha"
"ministarter"
"snacks_dashboard"
];
};
sections = {
lualine_a = ["mode"];
lualine_b = ["branch"];
lualine_c = [
];
};
};
};
}