Closed fedoranvar closed 2 years ago
Heyyo @fedoranvar , sorry for the late reply 😅
Actually i completely forgot about splits when tryin out color line, so i always used vim.o.columns
.
To get width of a single window, we could use vim.api.nvim_win_get_width
or vim.fn.winwidth
Example:
require("staline").setup {
sections = {
left = {
function()
return ("▁"):rep(vim.api.nvim_win_get_width(0))
end
}, -- change thickness: "_", "▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"
mid = {},
right = {}
},
}
@tamton-aquib
yes, that helped!
Thank you!
Good day to you!
I have "Color Line setup from WikiExamples: When i have one window open - it's okay
But when if i have any splits, then i have exceeding-indicator ("<"): that's because
vim.o.columns
- is showing width of neovim instance, but not for current windowmy question is: how to get rid of this sign?