mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 09:14:31 +02:00
lualine: add winbar and inactive sections configs (#302)
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
This commit is contained in:
parent
d62edf4178
commit
3d64fab719
2 changed files with 186 additions and 105 deletions
82
tests/test-sources/plugins/statuslines/lualine.nix
Normal file
82
tests/test-sources/plugins/statuslines/lualine.nix
Normal file
|
@ -0,0 +1,82 @@
|
|||
{
|
||||
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 = {
|
||||
lualine_a = ["mode"];
|
||||
lualine_b = ["branch" "diff" "diagnostics"];
|
||||
lualine_c = ["filename"];
|
||||
lualine_x = ["encoding" "fileformat" "filetype"];
|
||||
lualine_y = ["progress"];
|
||||
lualine_z = ["location"];
|
||||
};
|
||||
inactiveSections = {
|
||||
lualine_c = ["filename"];
|
||||
lualine_x = ["location"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.lualine = {
|
||||
enable = true;
|
||||
ignoreFocus = ["NvimTree"];
|
||||
sections = {
|
||||
lualine_c = [
|
||||
# you can specify only the sections you want to change
|
||||
{
|
||||
name = "filename";
|
||||
extraConfig.newfile_status = true;
|
||||
extraConfig.path = 1;
|
||||
extraConfig.shorting_target = 60;
|
||||
}
|
||||
];
|
||||
lualine_z = [
|
||||
{name = "location";}
|
||||
{name = "%L";} # total lines
|
||||
];
|
||||
};
|
||||
tabline = {
|
||||
lualine_a = [
|
||||
{
|
||||
name = "buffers";
|
||||
extraConfig.mode = 4;
|
||||
extraConfig.filetype_names = {
|
||||
TelescopePrompt = "Telescope";
|
||||
NvimTree = "NvimTree";
|
||||
};
|
||||
}
|
||||
];
|
||||
lualine_z = [
|
||||
{
|
||||
name = "tabs";
|
||||
extraConfig.mode = 2;
|
||||
}
|
||||
];
|
||||
};
|
||||
extensions = ["nvim-tree"];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue