Update lualine
This commit is contained in:
parent
8ca815550f
commit
aad30182e6
|
@ -16,7 +16,11 @@
|
||||||
sectionSeparators = { left = ""; right = ""; };
|
sectionSeparators = { left = ""; right = ""; };
|
||||||
|
|
||||||
# Display components in tabline
|
# Display components in tabline
|
||||||
tabline.lualine_a = [ { name = "buffers"; } ];
|
tabline = {
|
||||||
|
lualine_a = [ { name = "buffers"; } ];
|
||||||
|
lualine_x = [ { name = "hostname"; } ];
|
||||||
|
lualine_z = [ { name = "encoding"; } ];
|
||||||
|
};
|
||||||
|
|
||||||
# Lualine has sections as shown below
|
# Lualine has sections as shown below
|
||||||
# +-------------------------------------------------+
|
# +-------------------------------------------------+
|
||||||
|
@ -24,7 +28,7 @@
|
||||||
# +-------------------------------------------------+
|
# +-------------------------------------------------+
|
||||||
sections = {
|
sections = {
|
||||||
# Section A
|
# Section A
|
||||||
lualine_a = [ { name = "mode"; icon = ""; } ];
|
lualine_a = [ { name = "mode"; } ];
|
||||||
|
|
||||||
# Section B
|
# Section B
|
||||||
lualine_b = [
|
lualine_b = [
|
||||||
|
@ -34,34 +38,30 @@
|
||||||
# Git diff status
|
# Git diff status
|
||||||
{ name = "diff";
|
{ name = "diff";
|
||||||
extraConfig.symbols = {
|
extraConfig.symbols = {
|
||||||
added = " ";
|
added = "+";
|
||||||
modified = " ";
|
modified = "~";
|
||||||
removed = " ";
|
removed = "-";
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
# Diagnostic count from nvim_lsp
|
|
||||||
{ name = "diagnostics";
|
|
||||||
extraConfig = {
|
|
||||||
sources = [ "nvim_lsp" ];
|
|
||||||
symbols = {
|
|
||||||
error = " ";
|
|
||||||
warn = " ";
|
|
||||||
info = " ";
|
|
||||||
hint = " ";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
# Section C
|
# Section C
|
||||||
lualine_c = [ { name = "filename"; extraConfig = { path = 1; }; } ];
|
lualine_c = [ { name = "filename"; } ];
|
||||||
|
|
||||||
# Section X
|
# Section X
|
||||||
lualine_x = [
|
lualine_x = [
|
||||||
{ name = "encoding"; }
|
# Diagnostic count from nvim_lsp
|
||||||
{ name = "fileformat"; }
|
{ name = "diagnostics";
|
||||||
{ name = "filetype"; }
|
extraConfig = {
|
||||||
|
sources = [ "nvim_lsp" ];
|
||||||
|
symbols = {
|
||||||
|
error = "error:";
|
||||||
|
warn = "warning:";
|
||||||
|
info = "info:";
|
||||||
|
hint = "hint:";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
# Section Y
|
# Section Y
|
||||||
|
|
Loading…
Reference in a new issue