Skip to content

Instantly share code, notes, and snippets.

@drearondov
Created February 20, 2024 15:21
Show Gist options
  • Save drearondov/c550da8b1200236875c0838f2c8bc1e3 to your computer and use it in GitHub Desktop.
Save drearondov/c550da8b1200236875c0838f2c8bc1e3 to your computer and use it in GitHub Desktop.
Modify title for file explorer on AstroNVIM
provider = function(self)
local title = " EXPLORER"
local width = vim.api.nvim_win_get_width(self.winid)
local pad = width - #title
return " " .. title .. string.rep(" ", pad + 2)
end,
hl = { fg = "normal", bg = "tabline_bg", bold = true },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment