Hiding the cursor #1159
Answered
by
kyazdani42
simonmandlik
asked this question in
Q&A
Hiding the cursor
#1159
-
Hi, I have written this about 6 months ago: autocmd BufWinEnter NvimTree setlocal cursorlineopt=line guicursor+=n:Cursor
autocmd BufEnter,FileType NvimTree call NvimTreeHideCursor()
autocmd BufLeave,BufWinLeave,WinClosed NvimTree call NvimTreeShowCursor()
function! NvimTreeHideCursor()
highlight! Cursor blend=100
endfunction
function! NvimTreeShowCursor()
highlight! Cursor blend=NONE
endfunction It hides the cursor whenever the nvim-tree window is in the focus, because I find it quite distracting. I have recently updated all packages after quite a while and the cursor doesn't disappear. Any idea why or what is the correct way to do it now? |
Beta Was this translation helpful? Give feedback.
Answered by
kyazdani42
Apr 12, 2022
Replies: 1 comment 1 reply
-
There are now multiple nvim tree window, replace NvimTree with |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
simonmandlik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are now multiple nvim tree window, replace NvimTree with
NvimTree*
:)