rebelot / heirline.nvim

Heirline.nvim is a no-nonsense Neovim Statusline plugin designed around recursive inheritance to be exceptionally fast and versatile.
MIT License
1.06k stars 40 forks source link

Filler character #215

Open simonmandlik opened 4 days ago

simonmandlik commented 4 days ago

Hi, what is the recommended way to fill the rest of statusline with a single character? I know that it is possible to do with spaces, but what if I want to use other character than space?

There are two possible solutions I could think of:

Thanks!

rebelot commented 4 days ago

You are looking for :h 'fillchars' stl field

simonmandlik commented 3 days ago

Thanks for the quick reply :)

I know about fillchars, which works fine for "global" fillchars. However, I can't hide statusline e.g. in NvimTree buffers

vim.api.nvim_create_autocmd("FileType", {
    pattern = "NvimTree",
    callback = function()
        local set = vim.opt_local
        set.fillchars = { stl = " ", stlnc = " "  }
        -- doesn't work either
        -- set.fillchars.stl = " "
        -- set.fillchars.stlnc = " "
    end
})