Fork me on GitHub
#vim
<
2019-07-01
>
dominicm09:07:42

I'm giving auto-complete with fireplace a spin via vim-mucomplete. One downside appears to be that the first time you type, you get locked for a few seconds while fireplace tries to establish a connection.

tpope12:07:23

is establishing a connection always that slow for you? for me it is about 100ms if the server is already running

dominicm16:07:35

Yeah, always quite slow.

tpope00:07:45

probably worth looking into!

dominicm08:07:24

Might be a neovim vs vim thing, I'll have to explore.

dominicm08:07:46

Also noticed that occasionally when using piggieback, my typing will re-lock up - I'm guessing due to the completion also.

tpope09:07:31

nvim is snappy for me too. I'm using scriptease's :Time call fireplace#client() if you want to compare apples to apples

dominicm14:07:04

Okay, that's helpful.

dominicm14:07:25

Something that will have an effect on the omnicomplete this way is starting a nashorn REPL in cljs files.

tpope05:07:58

you mean the automatic starting? there's an option to disable that now

👍 4
dominicm08:07:50

Hmm, you're right that it's 0.159s for the fireplace#client() call. I must have been in cljs land and not paying enough attention (and the seconds were for nashorn)

dominicm04:07:00

Aha! I know what it is. It's because cider is lazily loaded now. When cider eventually loads, it takes 15s or so. My first :Eval (+ 2 2) takes much longer than subsequent ones when restarting nvim and re-evaluating.

tpope05:07:32

yeah i've noticed that too, but :Time Eval (+ 2 2) for me is about 800ms. 15s is bonkers

tpope05:07:56

plus i think a big chunk of that is loading pretty print which shouldn't happen for completion. :Time call fireplace#message({'op': 'eval', 'code': '(+ 2 2)'}) is just 200ms. :Time call fireplace#message({'op': 'complete', 'ns': 'user', 'symbol': 'd'}) is about 500ms

dominicm09:07:33

async_clj_omni with asyncomplete suffers from this also due to calling fireplace#client()

dominicm09:07:51

I'm guessing if I didn't have a repl it would blow up constantly