Fork me on GitHub
#vim
<
2020-10-23
>
herald10:10:11

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?

herald10:10:21

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).

walterl12:10:13

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

dave12:10:12

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.

dharrigan12:10:50

I mentioned it in the #conjure channel

dharrigan12:10:26

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

walterl12:10:44

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

herald12:10:35

@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.

dharrigan12:10:23

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

dharrigan12:10:26

the second window

herald12:10:04

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

walterl12:10:30

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

herald12:10:53

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

herald12:10:52

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

walterl12:10:24

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 🙂.

dharrigan13:10:19

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

herald13:10:19

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

borkdude13:10:58

(fwiw, not a vim / coc user!)

dharrigan13:10:53

I use ALE for clj-kondo too 🙂