nix-config/modules/nvim/config/lua/plugins/lualine.lua
2025-10-23 16:59:41 +02:00

45 lines
1.2 KiB
Lua

return {
-- TODO: Fix colorscheme for lualine
"nvim-lualine/lualine.nvim",
opts = {
options = {
theme = "auto",
icons_enabled = false,
-- globalstatus = true
component_separators = { left = "|", right = "|" },
section_separators = { left = "", right = "" },
},
winbar = {},
sections = {
lualine_a = {
{
"mode",
fmt = function(str)
return str:sub(1, 1)
end,
},
},
lualine_b = {
{
"filename",
file_status = true,
newfile_status = false,
path = 1,
shorting_target = 120,
symbols = {
modified = "[+]", -- Text to show when the file is modified.
readonly = "[-]", -- Text to show when the file is non-modifiable or readonly.
unnamed = "[No Name]", -- Text to show for unnamed buffers.
newfile = "[New]", -- Text to show for newly created file before first write
},
},
"encoding",
"filetype",
},
lualine_c = {},
lualine_x = {},
lualine_y = { "branch", "diff", "diagnostics", "lsp_status" },
lualine_z = { "progress" },
},
},
}