SoloVim/after/plugin/lualine.lua
2023-09-01 01:01:16 +03:00

36 lines
1.0 KiB
Lua

if not pcall(require, "lualine") then
return
end
require("lualine").setup({
options = {
component_separators = { left = "|", right = "|" },
},
--[[ 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" },
},
})