Closed dfalling closed 2 months ago
can you open a file like nvim lib/some_file.ex
and then see what :Lazy profile
says for elixir-tools.nvim ?
For me it says 0.91ms.
Also, try explicitly disabled credo language server
Strangely it's been very slow on non-Elixir files as well (eg opening my .gitconfig.) I think it may be network-related, as I have good WiFi for the first time in weeks and it's snappy again:
elixir-tools.nvim 282.19ms
Disabling credo got it down:
elixir-tools.nvim 5.21ms
I'll profile it again when it's slow again.
I have mediocre wifi now, and the startup time is ramping back up:
● BufReadPre 884ms
➜ elixir-tools.nvim 883.79ms
● BufReadPre 1319.58ms
➜ elixir-tools.nvim 1319.54ms
So it's definitely very network dependent. All my other packages don't seem to be affected the same way. Is there something I can do to disable this network dependency?
Is credo still disabled? there shouldn't be anything else that hits the network
Ah good call, I had re-enabled it. Is there any way to keep Credo from hitting the network? Disabling it definitely resolves the lag though I'd love to be able to use it.
If you are using Next LS, then it already comes with credo integration, so you don't need to use it.
Perfect, thank you!
I tracked down my very slow nvim launch time to requiring the elixir package:
vim file --startuptime log
I'm importing it via:
Any tips on further tracking down what I've screwed up to make it load so slowly?
Thanks!