neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.38k stars 954 forks source link

Linting does not work in Insert mode #1986

Closed rbhanot4739 closed 4 years ago

rbhanot4739 commented 4 years ago

Result from CocInfo

vim version: NVIM v0.4.3 node version: v12.16.2 coc.nvim version: 0.0.78-881f98ce99 term: iTerm.app platform: darwin

Describe the bug

Setting diagnostic.refreshOnInsertMode: true in coc-settings.json does not enable linting in insert mode. I am using coc-python with jedi set to true, whenever I open a python file, diagnostic only runs after saving the file and does not run instantly in insert mode. I have set diagnostics.refreshOnSave: false.

Reproduce the bug

Load nvim without any custom settings/mappings/autocommands using the below mini.vim Open any python file (since I use coc-python) go to insert mode and start typing, the diagnostics engine does not start until I exit the Insert mode and write the file.

mini.vim

  set nocompatible
  set runtimepath^=/path/to/coc.nvim
  filetype plugin indent on
  syntax on
  set hidden
rbhanot4739 commented 4 years ago

How can I get this change?

krehwell commented 3 years ago

in :CocConfig put


{
    "diagnostic.refreshOnInsertMode": true,
}