You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: The statusbar uses nvim default statusbar highlight colours on start and only uses defined colors when a editable buffer is opened
Possible Explanation: The get_statusline() function in the staline.nvim file contains an if statement at the beginning which might be barring the colours to set up on non editable buffers like the dashboard, netrw or help
Possible Solution: Move the call_highlights() function call above the if statement in the function
M.get_statusline=function(status)
localmode=vim.api.nvim_get_mode()['mode']
localfgColor=statusandconf.mode_colors[mode] ort.inactive_colorlocalbgColor=statusandt.bgort.inactive_bgcolorcall_highlights(fgColor, bgColor)
ifconf.special_table[vim.bo.ft] ~=nilthenlocalspecial=conf.special_table[vim.bo.ft]
return"%#Staline#%=" ..special[2] ..special[1] .."%="endM.sections= {}
localmodeIcon=conf.mode_icons[mode] or" "localf_name=t.full_pathand'%F' or'%t'-- TODO: original color of iconlocalf_icon=util.get_file_icon(vim.fn.expand('%:t'), vim.fn.expand('%:e'))
localedited=vim.bo.modandt.mod_symbolor""-- TODO: need to support b, or mb?localsize= ("%.1f"):format(vim.fn.getfsize(vim.api.nvim_buf_get_name(0))/1024)
.
.
.
end
Solution solves problem: Yes
Side effects: Unknown
The text was updated successfully, but these errors were encountered:
I am fairly certain it isnt... I have tried calling the functions manually... event Colorscheme doesnt work and my colorscheme (navarasu/onedark) is already set to priority 1000 which is the highest in my config..
Problem
: The statusbar uses nvim default statusbar highlight colours on start and only uses defined colors when a editable buffer is openedPossible Explanation
: Theget_statusline()
function in the staline.nvim file contains an if statement at the beginning which might be barring the colours to set up on non editable buffers like the dashboard, netrw or helpPossible Solution
: Move thecall_highlights()
function call above the if statement in the functionSolution solves problem
: YesSide effects
: UnknownThe text was updated successfully, but these errors were encountered: