35 lines
890 B
Lua
35 lines
890 B
Lua
if vim.version().minor >= 8 then
|
|
local function status_line()
|
|
local file_name = "%-.32t"
|
|
local modified = " %-m"
|
|
local right_align = "%="
|
|
local line_no = "%10([%l/%L%)]"
|
|
local pct_thru_file = "%5p%%"
|
|
|
|
return string.format(
|
|
"%s%s%s%s%s",
|
|
file_name,
|
|
modified,
|
|
right_align,
|
|
line_no,
|
|
pct_thru_file
|
|
)
|
|
end
|
|
|
|
vim.opt.laststatus = 3
|
|
vim.opt.winbar = status_line()
|
|
require('lualine').setup({
|
|
options = { theme = 'gruvbox-baby' },
|
|
sections = { lualine_c = { 'getcwd' } },
|
|
inactive_sections = { lualine_c = { 'getcwd', { 'filename', path = 1, file_status = true } } },
|
|
globalstatus = true,
|
|
})
|
|
else
|
|
require('lualine').setup({
|
|
options = { theme = 'gruvbox-baby' },
|
|
sections = { lualine_c = { 'filename' } },
|
|
globalstatus = false,
|
|
-- inactive_sections = { lualine_c = { 'filename' } },
|
|
})
|
|
end
|