Francisco Lopes
Francisco Lopes
I agree on that, but for example, with coc.nvim, the plugin I use with NeoVim, it doesn't try compile on every character I type, in fact that's kind horrid/annoying, I've...
FWIW, I've added server configuration for coc.nvim here: - https://github.com/neoclide/coc.nvim/wiki/Language-servers#purescript (coc.nvim can be configured both from `.vimrc` as from `coc-settings.json`)
I think coc doesn't decide when to evaluate anything, just decides when to send text changes to server.
I don't know the internals, but I guess that's it. Instead of sending requests on every input, it sends on sensible spots. I think coc.nvim allows for configuring that too,...
`diagnostic.refreshOnInsertMode` is the coc.nvim setting to have updates for every input: https://github.com/neoclide/coc.nvim/blob/ba4679cb69e1e81bc55d02eb86ba955e3b490af1/data/schema.json#L331-L335
@sriharshachilakapati coc.nvim does it on InsertLeave, it provides a good balance IMO, since I'm generally not interested in diagnostics until finished micro editing, which couples to entering Normal mode. Update...
I think something in this sense is sorely necessary.
Just registering it's being implemented in a competing plugin for Vim 8: https://github.com/chrisbra/vim-autoread.
This issue also should be the reason for braking jedi-vim: https://github.com/davidhalter/jedi-vim/issues/415
yes, for sure.