Coc.nvim: List changes cursor style

Created on 22 Jul 2019  Â·  6Comments  Â·  Source: neoclide/coc.nvim

Result from CocInfo

versions

vim version: NVIM v0.4.0-dev
node version: v11.15.0
coc.nvim version: 0.0.73-56825890dc
term: screen-256color
platform: linux

Describe the bug

Adding set guicursor=a:blinkon1 to minimal configuration and then bring up the CocList will change the cursor style to | permanently

workaround is to set guicursor=n:blinkon1

Reproduce the bug

  • Create file mini.vim with:

    set nocompatible
    set runtimepath^=/path/to/coc.nvim
    filetype plugin indent on
    syntax on
    set hidden
    set guicursor=a:blinkon1
    
    
  • Start (neo)vim with command: vim -u mini.vim

  • :CocList extensions

  • exit coc list

  • cursor style changed to |

Screenshots (optional)

coc-cursor-bug

wontfix

Most helpful comment

Since https://github.com/neovim/neovim/pull/11519 cursor can be hidden in TUI now.

All 6 comments

Can confirm the same behavior

vim version: NVIM v0.3.8
node version: v10.16.0
coc.nvim version: 0.0.72-22daa03a7d
term: xterm-256color
platform: linux

@jackielii thanks for workaround

workaround is to set guicursor=n:blinkon1

guicursor reset as expected, should be bug of neovim.

Can't fix, need neovim support hide cursor https://github.com/neovim/neovim/issues/3688

Since https://github.com/neovim/neovim/pull/11519 cursor can be hidden in TUI now.

I still experience this bug on

vim version: NVIM v0.5.0-436-ge8269a3ab
node version: v12.16.2
coc.nvim version: 0.0.78-c83813f730
coc.nvim directory: /home/nikola/.dotfiles/.vim/plugged/coc.nvim
term: xterm-256color
platform: linux

and (latest nvim release candidate and latest node LTS)

vim version: NVIM v0.5.0-558-g6d1404faf
node version: v12.18.0
coc.nvim version: 0.0.78-c83813f730
coc.nvim directory: /home/nikola/.dotfiles/.vim/plugged/coc.nvim
term: xterm-256color
platform: linux

furthermore, this keeps my cursor changed even when i exit nvim.. and even if i change to another sh/bash/zsh shell afterwards.. it happens on all of my terminal emulators sakura, xfce4-terminal and alacritty..

it happens even without X server running..

also, i'm using

  set guicursor=i:ver1      " insert mode: vertical bar
  set guicursor+=a:blinkon1 " all modes: turn on blinking

and i've seen people use much more complex guicursors, so it would be great if we wouldn't have to work around this issue, but rather solve it..

Thanks for your effort on this awesome extension ofc. This little annoyance if solved would make it even better for me :)

Check #1775

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hackingcat picture hackingcat  Â·  3Comments

svenstaro picture svenstaro  Â·  4Comments

skylite21 picture skylite21  Â·  3Comments

tom-james-watson picture tom-james-watson  Â·  3Comments

marene picture marene  Â·  3Comments