chore(oil): switch winbar for statusline

This commit is contained in:
Simon Lasbrugnas 2024-11-09 00:32:17 +01:00
parent 1c69d73784
commit 31a902784d
Signed by untrusted user who does not match committer: simon
GPG key ID: 86039876BA6ED8DE

View file

@ -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()}",
},
}