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

Slows down commands #98

Open
AlexXi19 opened this issue Apr 16, 2023 · 7 comments
Open

Slows down commands #98

AlexXi19 opened this issue Apr 16, 2023 · 7 comments
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested

Comments

@AlexXi19
Copy link

I was trying this plugin out but realized that this plugin adds significant lag to commands. I had some remaps that used commands and it made them unusable.

e.g.

vim.api.nvim_set_keymap("n", "}", [[:keepjumps normal! }<cr>]], { noremap = true })
vim.api.nvim_set_keymap("n", "{", [[:keepjumps normal! {<cr>]], { noremap = true })
@pafirmin
Copy link

pafirmin commented May 1, 2023

+1. Like many people I use the following mappings to shift lines up and down, and they become almost unusable when using this plugin.

keymap("n", "<A-DOWN>", ":m .+1<CR>==", opts("Shift line down"))
keymap("n", "<A-UP>", ":m .-2<CR>==", opts("Shift line up"))
keymap("v", "<A-DOWN>", ":m '>+1<CR>gv=gv", opts("Shift line down"))
keymap("v", "<A-UP>", ":m '<-2<CR>gv-gv", opts("Shift line up"))

@aserowy
Copy link
Owner

aserowy commented May 5, 2023

Hello,

i will look into it, but i guess it is entangled with the copy stuff. Can you please try it with disabled copy sync to narrow down the source?

Kind regards
Alexander

@aserowy aserowy added bug Something isn't working help wanted Extra attention is needed labels May 5, 2023
@aserowy aserowy added the question Further information is requested label May 24, 2023
@aserowy
Copy link
Owner

aserowy commented May 24, 2023

@pafirmin @AlexXi19
Can you please try to reproduce this with disabled copy sync?

@pafirmin
Copy link

I believe you're onto something - disabling copy sync fixes my issue. I also noticed the problem doesn't appear straight away in a fresh session, but seems to get worse as I y/p stuff.

@aserowy
Copy link
Owner

aserowy commented May 26, 2023

hmmm, i guess the sync with tmux triggers but i have no idea why. Since im not using tmux anymore, can anyone of you try to pin down, why it triggers?

@qoobes
Copy link

qoobes commented Mar 13, 2024

I'm having a similar issue right now with two things in particular:

  1. : takes much longer with the plugin enabled
  2. I have shift+h and shift+l mapped to buffer left / right with bufferline

Having the plugin enabled slows both down to maybe 100-200ms between when I press the shortcut and when it actually happens

@rbhanot4739
Copy link

@qoobes I am having the exact same issue, enabling the plugin slows down buffer movements significantly and if you keep on holding your buffer movement keys it lag goes even to seconds when you press the key and the buffer switches !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants