From 31a902784decb30ce84df1383ec0d68c5b646412 Mon Sep 17 00:00:00 2001 From: Simon Lasbrugnas Date: Sat, 9 Nov 2024 00:32:17 +0100 Subject: [PATCH] chore(oil): switch winbar for statusline --- lua/plugins/oil.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/plugins/oil.lua b/lua/plugins/oil.lua index 669cd4b..c864e54 100644 --- a/lua/plugins/oil.lua +++ b/lua/plugins/oil.lua @@ -6,7 +6,6 @@ return { CustomOilBar = function() local path = vim.fn.expand "%" path = path:gsub("oil://", "") - return " " .. vim.fn.fnamemodify(path, ":.") end @@ -27,7 +26,7 @@ return { ["g."] = "actions.toggle_hidden", }, win_options = { - winbar = "%{v:lua.CustomOilBar()}", + statusline = "%{v:lua.CustomOilBar()}", }, }