Closed sithumgmgcho closed 3 years ago
this is smth you probably want to check with coc plugin + godot lsp server
I can reproduce this. It only happens with LSP completions, I guess it's because coc expects a return value from LSP, but it returned an empty value.
As a workaround, you can use filetype plugin to change where coc#_select_confirm()
to "\<C-n>"
Edit: Completions after .
works without issue.
The problem is with Godot 's own LSP so we have to wait them to have it fixed.
You can remap coc confirm to the next entry in the completion list or just remove it and use completion from another plugin like Supertab. Use along with ftplugin so your configuration for other languages are intact.
On Sat, Dec 11, 2021, 9:15 PM Tobias Johansson @.***> wrote:
I can reproduce this. It only happens with LSP completions, I guess it's because coc expects a return value from LSP, but it returned an empty value.
As a workaround, you can use filetype plugin to change where coc#_select_confirm() to "\
" Edit: Completions after . works without issue.
Sorry for poking in a closed issues, could you give an example how to fix this? I have the issue that it removes all auto-complete and I'm using a .lua based setup for my nvim (if that matters).
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/habamax/vim-godot/issues/36#issuecomment-991771189, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALWXYAICEQTIIVHTQITZQJLUQOWMZANCNFSM45CHCOHA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
try add this to your init.vim , this work for me
inoremap
try add this to your init.vim , this work for me inoremap complete_info().selected != -1 ? \ &filetype == "gdscript" ? (coc#expandable() ? "
" : " a") : " " \ : " u "
Would it be possible to get some help doing the same but with LUA? I sadly don't know lua and I struggle to update this to that.
The plugin work for running scene and other command but coc doesn't complete the code for me. For example if I type
v
it should complete the code from top of the suggestion(for example,var
) but instead, it disappear completely. It complete some function but still have issue, for example, if I typesd
and hit enter, it complete the code from top of the suggestionset_deferred(
and it doesn't have a)
I believe I followed the instructions correctly.I'm on mac os 10.10, using neovim.