60 lines
1.5 KiB
Lua
60 lines
1.5 KiB
Lua
return {
|
|
"nvim-lualine/lualine.nvim",
|
|
|
|
dependencies = "nvim-tree/nvim-web-devicons",
|
|
|
|
opts = function()
|
|
local component = require("lualine.fschauen.component")
|
|
local icons = require("fschauen.util.icons")
|
|
local window = require("fschauen.window")
|
|
|
|
local diagnostics = component.colored_if_focused("diagnostics")
|
|
local filetype = component.colored_if_focused("filetype")
|
|
local status = component.colored_if_focused("fschauen.status")
|
|
local whitespace = component.colored_if_focused("fschauen.whitespace")
|
|
|
|
local sections = {
|
|
lualine_a = {
|
|
"fschauen.mode",
|
|
},
|
|
lualine_b = {
|
|
{ "branch", icon = icons.git.Branch, cond = window.is_medium },
|
|
},
|
|
lualine_c = {
|
|
"fschauen.filename",
|
|
status,
|
|
},
|
|
lualine_x = {
|
|
diagnostics,
|
|
"fschauen.searchcount",
|
|
{ filetype, cond = window.is_medium },
|
|
},
|
|
lualine_y = {
|
|
{ "fileformat", cond = window.is_medium },
|
|
"progress",
|
|
},
|
|
lualine_z = {
|
|
"location",
|
|
whitespace,
|
|
},
|
|
}
|
|
|
|
return {
|
|
options = {
|
|
icons_enabled = true,
|
|
component_separators = { left = "", right = "" },
|
|
section_separators = { left = "", right = "" },
|
|
},
|
|
sections = sections,
|
|
inactive_sections = sections,
|
|
extensions = {
|
|
"fugitive",
|
|
"quickfix",
|
|
"nvim-tree",
|
|
"lazy",
|
|
"man",
|
|
"trouble",
|
|
},
|
|
}
|
|
end,
|
|
}
|