vim-jukit
vim-jukit copied to clipboard
Code running when hitting enter in neo-tree's file tree
Hi! I've encountered a small, though annoying bug.
So, we have these binds:
nnoremap <cr> :call jukit#send#line()<cr>
vnoremap <cr> :<C-U>call jukit#send#selection()<cr>
which usually work just fine. However, when I open my file-tree from neo-tree, and then switch windows using <C-w>hjkl and then switch back to the file tree, and I hit enter to open a folder, jukit runs the last cell or visually selected block of code I ran. Hitting enter here does not also open the folder.
If I toggle the file-tree and open it again, enter works as expected - It's only when I open it, switch to the buffer with the code, then back, that this happens.
Any suggestions? Help is much appreciated!