SoloVim/after/plugin/lualine.lua
2023-08-28 21:32:28 +03:00

62 lines
1.5 KiB
Lua

if not pcall(require, "lualine") then
return
end
require("lualine").setup({
options = {
icons_enabled = true,
theme = "auto",
component_separators = { left = "|", right = "|" },
section_separators = { left = "", right = "" },
disabled_filetypes = {
statusline = { "dashboard" },
winbar = {},
},
ignore_focus = {},
always_divide_middle = false,
globalstatus = true,
refresh = {
statusline = 1000,
tabline = 1000,
winbar = 1000,
},
},
--[[ Available components
`branch` (git branch)
`buffers` (shows currently available buffers)
`diagnostics` (diagnostics count from your preferred source)
`diff` (git diff status)
`encoding` (file encoding)
`fileformat` (file format)
`filename`
`filesize`
`filetype`
`hostname`
`location` (location in file in line:column format)
`mode` (vim mode)
`progress` (%progress in file)
`searchcount` (number of search matches when hlsearch is active)
`selectioncount` (number of selected characters or lines)
`tabs` (shows currently available tabs)
`windows` (shows currently available windows) ]]
sections = {
lualine_a = { "mode" },
lualine_b = { "branch" },
lualine_c = { "filename", "diff" },
lualine_x = { "diagnostics", "encoding", "filetype", "filesize" },
lualine_y = { "progress" },
lualine_z = { "location" },
},
inactive_sections = {
lualine_a = {},
lualine_b = {},
lualine_c = { "filename" },
lualine_x = { "location" },
lualine_y = {},
lualine_z = {},
},
tabline = {},
extensions = {},
})