Only setup cursor shape in vim, not nvim

Neovim already changes cursor shape by default, there's no need to
override it.
This commit is contained in:
Kenneth Benzie 2022-11-06 11:12:06 +00:00
parent cde38c5469
commit 4c142d2fa5

View File

@ -176,7 +176,7 @@ if &t_Co == 8 && $TERM !~# '^linux\|^Eterm'
endif
" Change cursor dependant on current mode
if has('cursorshape') && has('unix') && !has('gui_running')
if !has('nvim') && has('cursorshape') && has('unix') && !has('gui_running')
if $TMUX ==# '' && $ITERM_PROFILE !=# ''
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7"