use lualine for winbar

This commit is contained in:
Oliver Hartmann 2022-09-19 10:51:56 +02:00
parent 4ba64948eb
commit 89b1d53451

View File

@ -17,12 +17,28 @@ if vim.version().minor >= 8 then
end end
vim.opt.laststatus = 3 vim.opt.laststatus = 3
vim.opt.winbar = status_line() -- vim.opt.winbar = status_line()
require('lualine').setup({ require('lualine').setup({
options = { theme = 'gruvbox-baby' }, options = { theme = 'gruvbox-baby' },
sections = { lualine_c = { 'getcwd' } }, sections = { lualine_c = { 'getcwd', { 'filename', path = 1, file_status = true } } },
inactive_sections = { lualine_c = { 'getcwd', { 'filename', path = 1, file_status = true } } }, inactive_sections = { lualine_c = { 'getcwd', { 'filename', path = 1, file_status = true } } },
globalstatus = true, globalstatus = true,
winbar = {
lualine_a = {},
lualine_b = {},
lualine_c = { { 'filename', path = 1, file_status = true } },
lualine_x = {},
lualine_y = {},
lualine_z = {}
},
inactive_winbar = {
lualine_a = {},
lualine_b = {},
lualine_c = { { 'filename', path = 1, file_status = true } },
lualine_x = {},
lualine_y = {},
lualine_z = {}
},
}) })
else else
require('lualine').setup({ require('lualine').setup({