2024-05-05 19:39:35 +02:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
2023-04-01 05:42:18 -03:00
|
|
|
empty = {
|
|
|
|
plugins.lualine.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
defaults = {
|
|
|
|
plugins.lualine = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
iconsEnabled = true;
|
|
|
|
theme = "auto";
|
|
|
|
componentSeparators = {
|
|
|
|
left = "";
|
|
|
|
right = "";
|
|
|
|
};
|
|
|
|
sectionSeparators = {
|
|
|
|
left = "";
|
|
|
|
right = "";
|
|
|
|
};
|
|
|
|
alwaysDivideMiddle = true;
|
|
|
|
globalstatus = false;
|
|
|
|
refresh = {
|
|
|
|
statusline = 1000;
|
|
|
|
tabline = 1000;
|
|
|
|
winbar = 1000;
|
|
|
|
};
|
|
|
|
sections = {
|
2024-05-05 19:39:35 +02:00
|
|
|
lualine_a = [ "mode" ];
|
|
|
|
lualine_b = [
|
|
|
|
"branch"
|
|
|
|
"diff"
|
|
|
|
"diagnostics"
|
|
|
|
];
|
|
|
|
lualine_c = [ "filename" ];
|
|
|
|
lualine_x = [
|
|
|
|
"encoding"
|
|
|
|
"fileformat"
|
|
|
|
"filetype"
|
|
|
|
];
|
|
|
|
lualine_y = [ "progress" ];
|
|
|
|
lualine_z = [ "location" ];
|
2023-04-01 05:42:18 -03:00
|
|
|
};
|
|
|
|
inactiveSections = {
|
2024-05-05 19:39:35 +02:00
|
|
|
lualine_c = [ "filename" ];
|
|
|
|
lualine_x = [ "location" ];
|
2023-04-01 05:42:18 -03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
example = {
|
2024-05-05 19:39:35 +02:00
|
|
|
extraPlugins = [ pkgs.vimPlugins.gruvbox-nvim ];
|
2023-04-01 05:42:18 -03:00
|
|
|
plugins.lualine = {
|
|
|
|
enable = true;
|
2023-04-26 09:11:42 -03:00
|
|
|
theme.__raw = ''
|
|
|
|
(function()
|
|
|
|
local custom_gruvbox = require("lualine.themes.gruvbox")
|
|
|
|
custom_gruvbox.normal.c.bg = '#112233'
|
|
|
|
return custom_gruvbox
|
|
|
|
end)()
|
|
|
|
'';
|
2024-05-05 19:39:35 +02:00
|
|
|
ignoreFocus = [
|
|
|
|
"NvimTree"
|
|
|
|
"neo-tree"
|
|
|
|
];
|
2023-04-26 09:11:42 -03:00
|
|
|
disabledFiletypes = {
|
2024-05-05 19:39:35 +02:00
|
|
|
winbar = [ "neo-tree" ];
|
2023-04-26 09:11:42 -03:00
|
|
|
};
|
2023-04-01 05:42:18 -03:00
|
|
|
sections = {
|
|
|
|
lualine_c = [
|
|
|
|
# you can specify only the sections you want to change
|
|
|
|
{
|
|
|
|
name = "filename";
|
2024-01-05 15:23:26 +01:00
|
|
|
icon = "-";
|
2023-09-17 01:02:46 +02:00
|
|
|
extraConfig = {
|
|
|
|
newfile_status = true;
|
|
|
|
path = 1;
|
|
|
|
shorting_target = 60;
|
|
|
|
};
|
2023-04-01 05:42:18 -03:00
|
|
|
}
|
|
|
|
];
|
|
|
|
lualine_z = [
|
2024-05-05 19:39:35 +02:00
|
|
|
{ name = "location"; }
|
|
|
|
{ name = "%L"; } # total lines
|
2023-04-01 05:42:18 -03:00
|
|
|
];
|
|
|
|
};
|
|
|
|
tabline = {
|
|
|
|
lualine_a = [
|
|
|
|
{
|
|
|
|
name = "buffers";
|
2024-01-05 15:23:26 +01:00
|
|
|
icon = {
|
|
|
|
icon = "X";
|
|
|
|
align = "right";
|
|
|
|
};
|
2023-04-01 05:42:18 -03:00
|
|
|
extraConfig.mode = 4;
|
|
|
|
extraConfig.filetype_names = {
|
|
|
|
TelescopePrompt = "Telescope";
|
|
|
|
NvimTree = "NvimTree";
|
|
|
|
};
|
2024-03-22 05:09:10 -07:00
|
|
|
fmt = ''
|
|
|
|
function(value)
|
|
|
|
return value
|
|
|
|
end
|
|
|
|
'';
|
2023-04-01 05:42:18 -03:00
|
|
|
}
|
|
|
|
];
|
|
|
|
lualine_z = [
|
|
|
|
{
|
|
|
|
name = "tabs";
|
|
|
|
extraConfig.mode = 2;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-05-05 19:39:35 +02:00
|
|
|
extensions = [ "nvim-tree" ];
|
2023-04-01 05:42:18 -03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|