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

Visual selection gets cancelled when using with NERDTree and vim-devicons #1

Closed
Frederick888 opened this issue Jan 11, 2021 · 4 comments

Comments

@Frederick888
Copy link

Frederick888 commented Jan 11, 2021

Description

When using with NERDTree and vim-devicons, after opening NERDTree, visual selection in main buffer gets cancelled after ~1s.

Steps to reproduce

set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath

" vim-plug
call plug#begin()

Plug 'antoinemadec/FixCursorHold.nvim'
Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons'

call plug#end()
  1. nvim -u /path/to/minimal.vim some_file
  2. :NERDTree
  3. Now in the main buffer, V and select a few lines
  4. Wait for 1-2 seconds, the visual selection gets cancelled

NeoVim:

NVIM v0.4.4
Build type: Release
LuaJIT 2.0.5
@p4p3r
Copy link

p4p3r commented Feb 3, 2021

I'm experiencing the same. Visual line/block selection is cancelled as soon as I stop moving the cursor. In my case way less than a second.

@timtyrrell
Copy link

timtyrrell commented Feb 23, 2021

Ah, same! I was losing my mind this week trying to figure out what was causing it, finally landed me here. I am using neovim nightly, btw.

I haven't dug in much but found this: preservim/nerdtree#983 (comment)

Possibly also interesting: Xuyuanp/nerdtree-git-plugin#173

EDIT: I just switched to https://github.com/weirongxu/coc-explorer 🤷

@antoinemadec
Copy link
Owner

@Frederick888 @p4p3r @timtyrrell oopsy, this repo was "unwatched" and I didn't receive notifications.
Could you please try again, I fixed the Visual mode issue back in April: b5158c9

This should work just fine now, please let me know.

@Frederick888
Copy link
Author

@antoinemadec I can confirm that with the latest plugins on neovim 0.5.1, the issue is no longer reproducible. Thank you.

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

4 participants