Skip to content
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

Lightspeed overwriting neogit shortcuts #160

Open
hagom opened this issue Aug 30, 2022 · 4 comments
Open

Lightspeed overwriting neogit shortcuts #160

hagom opened this issue Aug 30, 2022 · 4 comments

Comments

@hagom
Copy link

hagom commented Aug 30, 2022

Greetings

I have a problem with lightspeed, when I try to use neogit and I try to stage the changes that I've made in my project lightspeed gets activated.

For example, I execute in neovim :Neogit then a new buffer opens, when I press 's' to stage the changes the editor activates lightspeed, like if I was trying to navigate into the text, which is not the case.

So I would like to know if it is possible to disable lightspeed when using another plugin such as neogit. I don't know if it can be done in Packer or if there is an option in neovim to achieve that

@ggandor
Copy link
Owner

ggandor commented Sep 4, 2022

We could trigger an autocommand when entering a neogit buffer, with calls like api.nvim_buf_set_keymap('n', 's', 's') etc., to restore the defaults (for that buffer only), but how do we know that we've entered a neogit buffer... (I'm not familiar with the plugin, unfortunately, it would be a good idea to ask them too.)

@hagom
Copy link
Author

hagom commented Sep 7, 2022

We could trigger an autocommand when entering a neogit buffer, with calls like api.nvim_buf_set_keymap('n', 's', 's') etc., to restore the defaults (for that buffer only), but how do we know that we've entered a neogit buffer... (I'm not familiar with the plugin, unfortunately, it would be a good idea to ask them too.)

I'm not following, do you mean overwriting neogit shortcuts when entering the buffer?

@ggandor
Copy link
Owner

ggandor commented Sep 7, 2022

Yeah, sorry, to set the neogit kemaps, not restore the defaults, i.e. ('n', 's', <intended-neogit-funcitonality>).

@ggandor
Copy link
Owner

ggandor commented Oct 7, 2022

What about simply remapping neogit's s/S to something else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants