nvim-zh / colorful-winsep.nvim

Make your nvim window separators colorful
MIT License
422 stars 16 forks source link

neo-tree `auto_expand_width = true` causes separator to display over top of neo-tree when it expands wider #73

Closed jondkinney closed 1 week ago

jondkinney commented 1 month ago

Like the title says, the separator shows up fine initially, but then when neo-tree resizes due to a folder with long file names opening up, it doesn't adjust.

CleanShot 2024-08-26 at 10 41 29@2x

beyond-fu commented 1 month ago

Same bug to me!

denstiny commented 1 month ago

i see

denstiny commented 3 weeks ago

Neovim cannot read the WinResize event modified by defer_fn that changes the window size, which leads to the inability to redraw the window. I am currently unsure how to resolve this issue.

denstiny commented 3 weeks ago

"Can you provide a solution?" @jondkinney

micsama commented 2 weeks ago

"Can you provide a solution?" @jondkinney I often resize Neo-tree manually by map like res -5. maybe someone can add a lazy refresh into the plugin? add a command to refresh the line Manually? because we can map some key like: res -5refresh_line

or add an choice to refresh line every second?

micsama commented 2 weeks ago

"Can you provide a solution?" @jondkinney I often resize Neo-tree manually by map like res -5. maybe someone can add a lazy refresh into the plugin? add a command to refresh the line Manually? because we can map some key like: res -5refresh_line

or add an choice to refresh line every second? I think we need to add the cmd map, because sometimes when I close a term window below, the line will not refresh too

denstiny commented 1 week ago

Disable no_exec_files for neo-tree, which by default excludes events for neo-tree file types.

denstiny commented 1 week ago

@jondkinney @micsama Check the no_exec_files list.

https://github.com/nvim-zh/colorful-winsep.nvim/blob/b1e854f4c6f381a015d1923ddd71f07b30102231/lua/colorful-winsep/config.lua#L4

Euletheia commented 1 week ago

I've just encountered the issue, found this thread, updated winsep, and it works perfectly on my side! Thank you !