From 89b1d534515d0c58a5fc1089e1741aa32b96e836 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Mon, 19 Sep 2022 10:51:56 +0200 Subject: [PATCH] use lualine for winbar --- lua/setup/lualine.lua | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/lua/setup/lualine.lua b/lua/setup/lualine.lua index ebe45d2..5eaf810 100644 --- a/lua/setup/lualine.lua +++ b/lua/setup/lualine.lua @@ -17,12 +17,28 @@ if vim.version().minor >= 8 then end vim.opt.laststatus = 3 - vim.opt.winbar = status_line() + -- vim.opt.winbar = status_line() require('lualine').setup({ 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 } } }, 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 require('lualine').setup({