vim

For discussion on all things (neo)vim.
uosl 2020-10-23T10:51:11.077300Z

Does anyone use coc.nvim and have problems with it throwing you into random windows when you type fast and it tries to render floating windows?

uosl 2020-10-23T10:52:21.078500Z

It's very hard to tell what happens, but I'll be in insert mode, then suddenly scroll to the top of the file, the cursor moves to a different window and whatever I type gets inserted there (even if it's a nonmodifiable window like NERDtree).

walterl 2020-10-23T12:29:13.079Z

I use coc.nvim, but haven't run into that issue before

dave 2020-10-23T12:33:12.079900Z

ditto here. my gut feeling is that another plugin might be causing that issue. if you have a consistent way to repro the issue, i would recommend bisecting your plugins, removing half and seeing if the issue persists, etc.

dharrigan 2020-10-23T12:44:43.080300Z

@regen I get that

dharrigan 2020-10-23T12:44:50.080600Z

I mentioned it in the #conjure channel

dharrigan 2020-10-23T12:45:26.081500Z

I type, it tries to offer suggestions, and as I type, the focus goes, cursor jumps to top of the buffer and I start overwriting my ns

walterl 2020-10-23T12:51:44.082200Z

Is that related to the let g:conjure#client#clojure#nrepl#completion#with_context = v:false setting?

uosl 2020-10-23T12:52:35.082700Z

@dharrigan Ah, I'm glad I'm not the only one! I'm trying to make small changes to my init.vim when I have time, to try and find the culprit.

dharrigan 2020-10-23T12:53:23.083300Z

I'm leaning towards it (coc) trying to show additional documentation against the first pop-up

dharrigan 2020-10-23T12:53:26.083500Z

the second window

uosl 2020-10-23T12:54:04.083900Z

I don't use conjure, so I guess we can rule it's coc or something related to it.

walterl 2020-10-23T12:54:30.084300Z

I see I also have this in my config: let b:coc_diagnostic_disable = 1

uosl 2020-10-23T12:54:53.084800Z

Yes, I think it's the second window, as this only started happening when I started seeing it

dharrigan 2020-10-23T12:55:23.085Z

yes

uosl 2020-10-23T12:55:52.085400Z

@clojurians-slack100 Not sure what that does, but I have it as well in my coc_user_config: ` \ 'disableDiagnostics': 1, `

walterl 2020-10-23T12:59:24.088Z

IIRC coc's diagnostics was clashing with some functionality better provided by something else. I think it's to rather use ALE (with clj-kondo) for diagnostics, rather than coc. Or it could've been completion 🤷. Just something to try 🙂.

dharrigan 2020-10-23T13:01:19.088400Z

I have this in my coc-settings.json "diagnostic.virtualText": true,

uosl 2020-10-23T13:14:19.088700Z

I do actually use ALE for clj-kondo as well, but thanks for the suggestion [=

borkdude 2020-10-23T13:15:31.089Z

There is some documentation about coc + clj-kondo here: https://github.com/borkdude/clj-kondo/blob/master/doc/editor-integration.md#cocnvim

borkdude 2020-10-23T13:16:58.089600Z

(fwiw, not a vim / coc user!)

dharrigan 2020-10-23T13:17:53.089900Z

I use ALE for clj-kondo too 🙂