jk keybinding may cause input lag when navigating with j/k in neovim terminal #1117
Closed
JohnWickzzz
started this conversation in
General
Replies: 1 comment
-
I think #1119 should fix this up lol For those who come later, u might wanna check out *'ttimeout'* *'nottimeout'*
'ttimeout' boolean (default on)
global
This option and 'ttimeoutlen' determine the behavior when part of a
key code sequence has been received by the |TUI|.
For example if <Esc> (the \x1b byte) is received and 'ttimeout' is
set, Nvim waits 'ttimeoutlen' milliseconds for the terminal to
complete a key code sequence. If no input arrives before the timeout,
a single <Esc> is assumed. Many TUI cursor key codes start with <Esc>.
On very slow systems this may fail, causing cursor keys not to work
sometimes. If you discover this problem you can ":set ttimeoutlen=9999".
Nvim will wait for the next character to arrive after an <Esc>. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use the lazygit in neovim floating terminal, when I enter j/k move up and down, I feel the operation is very laggy.
I thought it was neovim terminal performance issue, until I found this issue akinsho/toggleterm.nvim#63
After commenting this code
![image](https://private-user-images.githubusercontent.com/12469651/293010595-94222c4b-3e14-4be7-89d7-27c854a2260e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNDI4NDgsIm5iZiI6MTczOTE0MjU0OCwicGF0aCI6Ii8xMjQ2OTY1MS8yOTMwMTA1OTUtOTQyMjJjNGItM2UxNC00YmU3LTg5ZDctMjdjODU0YTIyNjBlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDIzMDkwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU0ZjllMDhkNGRiNTY1NzEwNDJiYTYwY2JiY2U1ZTRkMjk1ZTFlZGM5OGQwNzQ4Y2Y1NzczZjgxYTVkN2Q5ZTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-KJFvhEv0Rw-_NKIZGpSGotyrqrF8XjrK5vw2Ul7mgE)
It feels like the operation is finally smooth.
I don't know if others encountered this problem. Just sharing what I learned.
Beta Was this translation helpful? Give feedback.
All reactions