-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: 'Lazy doc' completion broken for omnifunc #475
Conversation
pylsp was not displaying documentation from lsp server. this fixes the problem M autoload/lsp/completion.vim
Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i am not going to raise another PR, please try to refine it by yourself. thanks.
@@ -641,7 +641,7 @@ export def BufferInit(lspserver: dict<any>, bnr: number, ftype: string) | |||
return | |||
endif | |||
|
|||
if !opt.lspOptions.autoComplete && !LspOmniComplEnabled(ftype) | |||
if !opt.lspOptions.autoComplete && !LspOmniComplEnabled(ftype) && !opt.lspOptions.omniComplete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tho not sure your problem, but the code logic seems wrong:
- when
lspOptions.omniComplete
was true, - but
server.omnicompl
was false, - then it should be still no omni compl there.
a.k.a when auto compl was false too, then that judgement should bereturn
still.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a.k.a when auto compl was false too, then that judgement should be return still. it already like its next comment said.
# LSP auto/omni completion support is not enabled for this buffer | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and this comment.
You can refactor any way you want as long as we have these when
|
i am not interesting, |
BTW: i still remember last time you modified that |
|
there is a spec, and the |
pylsp was not displaying documentation from lsp server. this fixes the problem.
user does not have to enable omnicomplete for each file type when main option omniComplete is already enabled.
M autoload/lsp/completion.vim