-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Neogit disables numbers for new buffers opened #1539
Comments
Facing the same issue. Neovim version
Operating system and version
|
yes i opened an issue 3 days ago, it also mess with some keymaps like , my keymaps to go down and up (c-n, c-p), etc |
Neogit messes up with the `foldcolumn`, so locking to a version before it was broken. NeogitOrg/neogit#1539
I'm encountering the same issue |
Same issue here on the latest |
Thanks! And gratz for the twins!
…On Thu, Nov 14, 2024, 9:50 AM Cameron ***@***.***> wrote:
Hey - I have a guess whats up, but y'all will have to sit tight for a bit.
Just had twins, so I'm busy for a while 😉
—
Reply to this email directly, view it on GitHub
<#1539 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6NKLAVSQUZJBFUBBBJCZET2ATBDXAVCNFSM6AAAAABRCMYXNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZWG43DGNRWHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Oops, deleted my comment. As I was saying, I have a guess whats up, but just took home some twin boys so.. not loads of time right now. |
Congrats! I'm sure twins are a lot of work. I just locked the package to an older commit, so no worries. Thanks for all your work on this great package! |
the overwrite for me comes from here
|
Some questions: When you open Neogit, is it as a tabpage? or some other kind? When you say "open new buffer", could you specify how? Like, via Seems to work alright for me :\ Screen.Recording.2024-11-21.at.14.50.33.mov |
the issue for me is if I open neogit and use the same window to navigate to another file, for example, |
Ohh. Yeah, you shouldn't reuse the window. I set a bunch of window options that you almost certainly don't want. All of the "edit file" "open in split" actions first -close- the neogit buffer to avoid exactly this. So, I think the fix here is to make it so you can't do this, a bit more like how telescope works with its layouts. |
yeah, now that I'm aware of how it works, I don't do this, but sometimes, when I work for long hours, I forget, it would be nice just to block this window navigation somehow |
Personally, I find the use-case of
to be a really compelling one and "fixing" it so that this can't be done seems harsh. I was about to submit a PR for this change, which only sets the options in "local" scope, and that fixes the issues with options for me at least. However, the new buffer is somehow tied to the other Neogit buffer/window and when I close it (neogit buffer/window), my new window is also closed (the buffer remains though). |
Description
After opening and closing neogit, any new buffers opened after the action now have the number option unset, as well as the foldcolumn being set to 0.
While I do understand that foldcolumn being set to 0 is a feature (as referenced in #1507) rather than a bug. It's rather disruptive to my workflow to have it not be set back properly after I leave neogit.
Neovim version
NVIM v0.10.2
Build type: RelWithDebInfo
LuaJIT 2.1.1727870382
Run "nvim -V1 -v" for more info
Operating system and version
EndeavourOS
Steps to reproduce
:set number foldcolumn=1
Expected behavior
The new buffer retains the number and signcolumn settings.
Actual behavior
The new buffer no longer has the number and signcolumn setting set.
Minimal config
The text was updated successfully, but these errors were encountered: