neoclide / coc-rls

Rust language server support for coc.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cursor lags occasionally with coc enabled

mankinskin opened this issue · comments

Result from CocInfo

versions

vim version: NVIM v0.3.8
node version: v11.15.0
coc.nvim version: 0.0.74-c97d41aa1e
term: xterm-256color
platform: linux

Messages

[coc.nvim] Setting sysroot to/home/linusb/.rustup/toolchains/stable-x86_64-unknown-linux-gnu
[coc.nvim] running: rustup run stable-x86_64-unknown-linux-gnu rls, at /home/linusb/git/budget_app
"src/main.rs" 32L, 545C written
[coc.nvim] Update completed

Describe the bug

With the plugin enabled, sometimes vim would lag behind. For example when navigating using j and k keys, the cursor would not move but would jump two lines after pressing the button again.

Reproduce the bug

  • Create file mini.vim with:

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

  • Operate vim, move the cursor quickly for a while.

Can't reproduce.