-
Notifications
You must be signed in to change notification settings - Fork 9
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
Bug: The plugin cannot work well with ctrl-o #28
Comments
Interesting, the default pinning for help buffers should allow them to be replaced by other help buffers. When I try to repro this (by doing |
@stevearc I mean that if I go back to a non-help file, it will vertically split the window. |
There is no way for stickybuf to tell the difference between switching buffers via require("stickybuf").setup({
get_auto_pin = function(bufnr)
local pin_type = require("stickybuf").should_auto_pin(bufnr)
if pin_type then
return {
allow_type = pin_type,
handle_foreign_buffer = function()
vim.notify("Cannot open buffer in pinned window", vim.log.levels.WARN)
end,
}
end
end,
}) |
When using
ctrl-o
to go to an older cursor position, the current window might change to other buffer if the current buffer doesn't have enough items in the jump list. And if the current buffer is locked bystickybuf.nvim
, it will vertically split the window.Press
ctrl-o
several times:(the help buffer has been locked bystickybuf.nvim
).nvim.2024-02-01.22-01-38.mp4
The text was updated successfully, but these errors were encountered: