-
-
Notifications
You must be signed in to change notification settings - Fork 46
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 ] cmdheight after restore is incorrect #64
Comments
On Linux, working around this currently by putting |
I am using MacOS Big Sur 11.5.2 |
This happens to me too (though not all the time). I just quickly resize the terminal and get the correct sizes back. I don't think it's something this plugin can solve though. A better idea is what @jameshiew mentions so the resizing happens automatically instead of doing it manually. |
I think I figured out what is causing this issue. This is either a popupwindow or a notification from the |
I actually feel pretty strongly about adding specific code to work around what/how other plugins do things. As in I don't think it's the right call to do so. The hooks exist for this very reason, so people can customize things before and after session loading happens, auto-session can't conceivably cover every possible edge case for every possible plugin. As for how one would do this through the hooks, by quickly looking at nvim-notify code, I can't really see a specific thing that can be used to identify a notification buffer, at least from a quick skim. The author of that plugin might be able to tell you more about it. |
I actually fully back you in this. I agree that it wouldn't be hygienic to specify exceptions for other plugins. |
I'm okay with that suggestion. Reopening 👍 |
I had this issue with neovim 0.6.0, but after upgrading to 0.7.0 the issue was fixed. EDIT: nvm I just got lucky |
This issue exists in not only this plugin, but other session management plugins like I am using function M.close_all_floating_wins()
for _, win in ipairs(vim.api.nvim_list_wins()) do
local config = vim.api.nvim_win_get_config(win)
if config.relative ~= "" then
vim.api.nvim_win_close(win, false)
-- print('Closing window', win)
end
end
end |
I will test this and if it works well for this issue, will add it under troubleshooting. @rmagatti, could you enable wiki for this repo? I don't think this and any other issue fix should pollute the |
Sounds good! |
Unfortunately, I still cannot add a wikipage it seems. The wiki exists but there must be some kind of switch for letting people add pages... Issue:
|
An addition: If the floating windows were closed by Thanks. |
@kunzaatko odd, wiki is enabled, I wonder if there are any permission settings. 🤔 |
I guess I had to add the first page? I'll copy that over tomorrow if you really can't add it there. 👍 |
No, unfortunately it still does not allow me to add the page. |
@rmagatti |
@rockyzhang24 |
@kunzaatko I've updated the wiki, thanks for that! @0x7a7a I don't use any of those plugins myself so I haven't really tested this but this does look like it should work! Some plugins including my |
With this commit (neovim/neovim@3fe6bf3) merged, this issue is solved. It ignores the floating windows when we save the session, so no disordered layout when we restore it. This issue can be closed. |
Great! This means that the page in the wiki is no longer necessary and can be dropped. Again, unfortunately, I can not edit it... Can you remove it, please, @rmagatti? |
The page can still be left there for a while at least wait until neovim 0.8 release. I believe most users will persist on the stable neovim version or use an older one, and they still need that snippet. |
I have same issue with
which is weird... |
If neovim is closed with nvim-tree open, this is caused.
The text was updated successfully, but these errors were encountered: