-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle unlisted buffers while Cybu window is open #19
Comments
👋🏼, Glad you like it, and thank you for reporting the issue. Based on your description, I was able to reproduce the issue. Previously, there was a hard-coded filter for unlisted buffers, which activated the fallback, which per default does nothing. I have added a new config option (e74c3fa) that allows you to turn off the filter for unlisted buffers. By setting Steps to reproduce
lua vim.defer_fn(function() vim.api.nvim_buf_set_option(2, 'buflisted', false) end, 1500)
|
@ghillb Yeah, that fixes the issue of Cybu not working on unlisted buffers. Sadly, this counters the reason I'm using One solution, that I'm guessing would be possible, is to add a fallback to the |
We're disabling this plugin since it doesn't play nicely with unlisted buffers. Will enable it again once ghillb/cybu.nvim#19 is resolved.
Could you please test if the fallback setting can handle your use case? I just added the possibility to grab Example: fallback = function(direction, mode)
if direction == "next" then
vim.cmd("bnext")
else
vim.cmd("bprev")
end
end, |
That looks like an awesome solution. It sort of works but there seems to be a bug. I have to run recording-2023-04-20_10.27.30.mp4 |
👋🏼,
First off, I want to say thank you - I'm really loving this plugin!
In my setup, I use
bufignore.nvim
to unlist Git ignored buffers once they are hidden. However, I've encountered an issue with Cybu when I move through the entire list of buffers it provides. When it encounters an unlisted buffer, Cybu silently stops working, and I have to usebnext
to move to another listed buffer.This behavior can be easily replicated with the following steps:
vim.defer.fn
to unlist one of the buffers with a delay of 1-2 seconds.The text was updated successfully, but these errors were encountered: