smart-splits.nvim
smart-splits.nvim copied to clipboard
[Bug]: `at_edge` has no effect for floating windows when `float_win_behavior = 'mux'`
Steps to Reproduce
opts.at_edge is not called when float_win_behavior = 'mux'
Minimal Reproduction
{
float_win_behavior = 'mux',
at_edge = function(context)
print('foo')
end,
}
- Use the previous config.
- Open a floating window.
- Invoke the keymap that corresponds to
move_cursor_right(). - .
EXPECTED:
fooshould be printed ACTUAL:foois not printed
Cause
Because we are returning early: https://github.com/mrjones2014/smart-splits.nvim/blob/9a6cd461000e518be35ae830e46695e9b8b4c315/lua/smart-splits/api.lua#L359-L363
We never reach the point where at_edge() is called: https://github.com/mrjones2014/smart-splits.nvim/blob/9a6cd461000e518be35ae830e46695e9b8b4c315/lua/smart-splits/api.lua#L393
Versions
nvim v0.10.0
kitty 0.35.1