"No space for winbar" message even with space
Description
Symbol winbar shows "No space for winbar".
Expected Behavior
No error.
Actual Behavior
Shows an error like this:

Neovim Built in Behavior
No applies.
Details
Environment
- nvim --version output:
NVIM v0.8.0-dev-1088-gbd4eca114
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilado por runneradmin@fv-az177-728
Features: -acl +iconv +tui
See ":help feature-compile"
arquivo vimrc de sistema: "$VIM\sysinit.vim"
padrão para $VIM: "C:/Program Files (x86)/nvim/share/nvim"
Run :checkhealth for more info
- Operating system: Windows 11
- lspsaga commit: lastest (https://github.com/glepnir/lspsaga.nvim/commit/757f38218ae0b17cc537ebbc2e7fe4adac620001)
- Configs:
lua <<EOF
local saga = require 'lspsaga'
saga.init_lsp_saga({
border_style = "single",
saga_winblend = 0,
move_in_saga = { prev = '<C-p>',next = '<C-n>'},
diagnostic_header = { " ", " ", " ", "ﴞ " },
code_action_icon = "💡",
code_action_num_shortcut = true,
code_action_lightbulb = {
enable = false,
sign = true,
update_time = 150,
sign_priority = 20,
virtual_text = true,
},
finder_icons = {
def = ' ',
ref = '諭 ',
link = ' ',
},
max_preview_lines = 10,
finder_action_keys = {
open = "o",
vsplit = "s",
split = "i",
tabe = "t",
quit = "q",
scroll_down = "<C-f>",
scroll_up = "<C-b>", -- quit can be a table
},
code_action_keys = {
quit = "q",
exec = "<CR>",
},
rename_action_quit = "<C-c>",
symbol_in_winbar = {
in_custom = false,
enable = true,
separator = ' ',
show_file = true,
click_support = false,
},
show_outline = {
win_position = 'right',
left_with = '',
win_width = 30,
auto_enter = true,
auto_preview = true,
virt_text = '┃',
jump_key = 'o',
-- auto refresh when change buffer
auto_refresh = true,
},
})
EOF
the window height is what echo winheight(0)
echo winheight(0)
It's 44
please provide the reproduce step. and check your config you used lots of removed options.
Thanks @glepnir. I will update the config and try to reproduce
@glepnir I did find the bug. The problem is that the new winbar value was too big for the current window width. What about to cut the value for these cases?
yup in my mind.