nixvim/config/plugins/ui/lualine.nix
Wael Nasreddine 0f42b0eebb
treewide: format all files (#57)
Run `nix fmt` at the root of the repository to format all files. I've
done this on my fork and this will help me merge your changes later
without having to deal with un-formatted files.
2024-11-26 09:47:49 +01:00

97 lines
2.1 KiB
Nix

_: {
plugins.lualine = {
enable = true;
settings = {
options = {
globalstatus = true;
extensions = [
"fzf"
"neo-tree"
];
disabledFiletypes = {
statusline = [
"startup"
"alpha"
];
};
theme = "catppuccin";
};
sections = {
lualine_a = [
{
__unkeyed-1 = "mode";
icon = "";
}
];
lualine_b = [
{
__unkeyed-1 = "branch";
icon = "";
}
{
__unkeyed-1 = "diff";
symbols = {
added = " ";
modified = " ";
removed = " ";
};
}
];
lualine_c = [
{
__unkeyed-1 = "diagnostics";
sources = [ "nvim_lsp" ];
symbols = {
error = " ";
warn = " ";
info = " ";
hint = "󰝶 ";
};
}
{
__unkeyed-1 = "navic";
}
];
lualine_x = [
{
__unkeyed-1 = "filetype";
icon_only = true;
separator = "";
padding = {
left = 1;
right = 0;
};
}
{
__unkeyed-1 = "filename";
path = 1;
}
{
__unkeyed-1.__raw = ''
function()
local icon = " "
local status = require("copilot.api").status.data
return icon .. (status.message or " ")
end,
cond = function()
local ok, clients = pcall(vim.lsp.get_clients, { name = "copilot", bufnr = 0 })
return ok and #clients > 0
end,
'';
}
];
lualine_y = [
{
__unkeyed-1 = "progress";
}
];
lualine_z = [
{
__unkeyed-1 = "location";
}
];
};
};
};
}