-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Extra side buffers #221
Comments
Hey! Thanks for opening the issue I'll try to reproduce and see where the issue come from, thanks! |
At first glance, there's indeed something clashing between the two plugins. On the I can try to find a way to cleanup existing buffers but not sure if I can properly identify them. |
I managed to mitigate this bug by removing some options from vim.opt.sessionoptions = "buffers,curdir,terminal" |
oh this is huge @ivanjermakov, thanks a lot! I'll try it myself and adds them as a default integration if it works |
I can't get auto-session working together with no-neck-pain either. When i close nvim with @shortcuts do you know how to solve this? I tried calling |
Hey, I believe there is a race condition in that case because both Do you know if there is a way to filter out windows/buffers given a |
This comment was marked as outdated.
This comment was marked as outdated.
@shortcuts thanks for the pointer. I double-checked it and indeed found an option to accomplish this. I ended up using: return {
"rmagatti/auto-session",
lazy = false,
init = function()
vim.opt.sessionoptions = "buffers,curdir,terminal"
end,
keys = {
{
"<leader>ss",
"<cmd>Autosession search<cr>",
desc = "[S]earch [S]essions",
},
{
"<leader>sd",
"<cmd>Autosession delete<cr>",
desc = "[S]earch [D]elete",
},
},
opts = {
log_level = "error",
auto_session_use_git_branch = true,
bypass_session_save_file_types = {
"",
"no-neck-pain",
"neo-tree",
"noice",
"notify",
"fugitive",
"neotest-summary",
},
},
} I used this keymap while focusing on windows to identify the file types of the plugins i want to disable: vim.keymap.set("n", "<leader>m", function()
local bufnr = vim.fn.bufnr("%")
local buftype = vim.api.nvim_buf_get_option(bufnr, "filetype")
vim.notify(buftype, "error")
end) |
Great find @sand4rt! that's a good enough workaround for people that don't use the no-neck-pain side buffers as scratchpad however for custom filetypes it wouldn't work :/ I'll think of a way to natively fix that Thanks again for using the plugin and the feedbacks!! |
Same thing happens with I realized that I don't use scratchpads, so I just disabled them. But then, this error pops up on session restoration:
|
Hey @alex35mil thanks for reporting and using the plugin! I have a somewhat viable solution for the next major version but will try to come up with a fix for the current version |
Description
Bunch of extra side buffers open on every new session.
Steps to reproduce
Use this plugin with:
https://github.com/rmagatti/auto-session
enable autocmds:
Expected behavior
Only two side buffers should be showing up by default
Environment
The text was updated successfully, but these errors were encountered: