Closed matsui54 closed 2 years ago
The problem occurs after #21.
Oh, Ping @LumaKernel
Reproduced.
I will add the check.
can you let me check the value of echo luaeval("(function()local x,y=vim.lsp.buf_request(0, 'textDocument/completion', vim.lsp.util.make_position_params(), function(_,a,b)end); return {x,y}end)()")
when lsp is working?
[[5], function('<lambda>2757')]
First item is request id and this value is empty when lsp is not working.
thank you. https://github.com/Shougo/ddc-nvim-lsp/pull/23 may fix this.
I tried the PR and it seems to be fixed. Thank you!
Problems summary
Nvim-lsp source becomes very slow in buffers which language server doesn't attach.
Expected
Completion menu appears immediately after typing.
Environment Information
ddc.vim version (SHA1): https://github.com/Shougo/ddc.vim/commit/e1f2e7657f2a7c9a27ff62d7ff60e41009f527c9
denops.vim version (SHA1): https://github.com/Shougo/ddc.vim/commit/e1f2e7657f2a7c9a27ff62d7ff60e41009f527c9
deno version(
deno -V
output):deno 1.14.3 (release, x86_64-unknown-linux-gnu)
OS: arch linux
neovim/Vim
:version
output:NVIM v0.6.0-dev+366-g270cc1d70
:checkhealth
or:CheckHealth
result(neovim only): No problemProvide a minimal init.vim/vimrc with less than 50 lines (Required!)
How to reproduce the problem from neovim/Vim startup (Required!)
hoge ho
.The delay time seems 2000 ms which is
timeout
of ddc-source-option. I tried this config and the delay became shorter.Screenshot (if possible)
https://user-images.githubusercontent.com/63794197/136915709-cdbefcdb-5b12-4f0e-b134-077d20d22cc0.mp4