-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
CursorHold is blocked while Fern buffer is shwon #120
Comments
Could not be reproduced with the following minimal vimrc. " vim -u ~/.vim/vimrc.min
if has('vim_starting')
set nocompatible
endif
set packpath=
set runtimepath+=~/.config/nvim/pack/minpac/start/fern.vim
filetype plugin indent on
syntax on
autocmd CursorHold * echo 'cursor hold' |
How to reproduce: Open Fern with minimal vimrc: call plug#begin('~/.local/share/nvim/plugged')
Plug 'lambdalisue/fern.vim'
call plug#end()
filetype plugin indent on
set nocompatible
syntax on
set updatetime=200
autocmd CursorHold * echo 'cursor hold' |
Please make it minimal. |
edited |
Reproduced but it seems that behavior comes from a bug on Neovim itself. Thus I'm not going to apply any modification for this behavior. Please move on to the issue above. |
@amerov , @lambdalisue , could you please try to use this plugin and tell me if it fixed it? |
It fixed CursorHold blocking, but with this plugin it fire twice |
@amerov , I just fixed it. |
It works. |
This Neovim bug is annoying, it breaks vim-gitgutter when a file is opened by fern and fern remains open. The gitgutter signs will not be emitted. Closing fern will result in the signs be displayed. The interim fix is to include: if has("nvim")
Plug 'antoinemadec/FixCursorHold.nvim'
endif Hopefully Neovim will be fixed eventually. |
Neovim took too long to fix that. Probably we should note users about this in README |
Done 8433792 |
Does this mean that this additional plugin is no longer required? I'm inferring from your statement, it took neovim a long time but the issue has been resolved. |
The Neovim issue is not fixed. It is recommended to use the plugin to workaround the cursor hold issue. |
Note for those concerned, Neovim fixed CursorHold issue 12587 in this PR. Upcoming Neovim 0.8 (to be released very soon, probably before Oct 2022) will incorporate the fix (which already is in nightly). Folks who use Neovim nightly or 0.8 can now remove the |
fix: Clarify wording about #120 in README
how to reproduce:
:autocmd CursorHold * echo 'cursor hold'
it works but stopped after open Fern
version:
UPD: Fern should be open with
-drawer
optionThe text was updated successfully, but these errors were encountered: