dotfiles/config/common/nvim/lua/plugins/common/lualine.lua

64 lines
1.3 KiB
Lua

local lualine_sections = {
lualine_a = { "mode" },
lualine_b = {
{ "branch" },
{
"diff",
symbols = {
added = "",
modified = "",
removed = "",
},
},
},
lualine_c = {
{ "filename", file_status = true, path = 1 },
},
lualine_x = {},
lualine_y = {
{ "searchcount" },
{ "progress", padding = { left = 1, right = 0 }, separator = " " },
{ "location", padding = { left = 0, right = 1 } },
},
lualine_z = {},
}
if MainHost then
table.insert(lualine_sections.lualine_x, {
"diagnostics",
symbols = {
error = "",
warn = "",
info = "",
hint = "",
},
})
table.insert(lualine_sections.lualine_x, {
"lsp_status",
symbols = {
spinner = { "", "", "", "", "", "", "", "", "", "" },
done = "",
separator = " ",
},
})
end
return {
"nvim-lualine/lualine.nvim",
event = "VeryLazy",
config = function()
require("lualine").setup({
options = {
theme = "powerline",
section_separators = "",
component_separators = "",
globalstatus = false,
disabled_filetypes = { statusline = { "snacks_dashboard" } },
},
sections = lualine_sections,
tabline = {
lualine_a = { "buffers" },
},
})
end,
}