Closed winkee01 closed 4 years ago
That's a feature. You can disable it by the following
*g:fern#disable_viewer_hide_cursor*
Set 1 to disable viewer hide cursor. Note that Neovim prior to 0.5.0
cannot hide cursor thus the cursor is shown as a vertical bar instead.
https://github.com/lambdalisue/fern.vim/blob/master/doc/fern.txt#L378-L380
Oops. Sorry, I didn't notice the last line
exit neovim, but cursor is still vertical bar
But I could not reproduce. Please write a minimum vimrc and steps to reproduce.
set nocompatible " must be first
set encoding=utf-8
call plug#begin('~/.vim/plugged')
Plug 'antoinemadec/FixCursorHold.nvim'
Plug 'lambdalisue/fern.vim'
call plug#end()
set termguicolors
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc
I found that if in tmux window, it will reproduce the issue. otherwise ok.
Another, it does not display a box cursor even if work "normally", in my case, the effect is like below: as you can see, there is no cursor, but a highlighted line indicates on which line the cursor is.
Please make it a minimum.
the minimun can be
set nocompatible " must be first
set encoding=utf-8
call plug#begin('~/.vim/plugged')
Plug 'antoinemadec/FixCursorHold.nvim'
Plug 'lambdalisue/fern.vim'
call plug#end()
hi, are you able to reproduce the issue?
g:fern#disable_viewer_hide_cursor in some cases but it seems not work with neovim.
hi, are you able to reproduce the issue?
Unfortunately no.
this reproduces on my machine every time. I tested on different machines.
When I have some time I'll try to reproduce with a minimum config but I'm also having the exact issues described. I'm currently using Tmux and kitty terminal
Unfortunately, I'm using Tmux on iTerm2 as well but I could not reproduce it...
@winkee01 @ludamillion
The PR description has several topics thus I'd like to make sure if both of your face a real issue
use :Fern . to browse, now my box cursor becomes vertical bar
Another, it does not display a box cursor even if work "normally", in my case, the effect is like below: as you can see, there is no cursor, but a highlighted line indicates on which line the cursor is.
Above are feature. Fern hide cursor in fern buffer so you'll never see cursor on fern buffer (disable this feature by g:fern#disable_viewer_hide_cursor = 1
)
So if you are talking about this. The issue is definitely invalid.
exit neovim, but cursor is still vertical bar
This is not feature and I could not reproduce this in the following environment
If you are talking about this. Please make minimum information to reproduce the issue. Additionally, I feel it's kind Neovim's issue rather than fern itself while you said that the cursor is not restored after Neovim has closed.
Somehow it works normally today, just don't know why.
Closable?
neovim open a directory and then type
:Fern .
to open the browsing view, the cursor type will become verticle bar.steps:
1) open current directory, my cursor type is box
2) use
:Fern .
to browse, now my box cursor becomes vertical bar3) exit neovim, but cursor is still vertical bar
my iterm2's settings for cursor:
plugins:
OS: Mac OS X, Catalina Terminal: iTerm2 Editor: neovim
PS: I test fern in vim, but it will not change my cursor, so I guess there is some problem with working in neovim?