-
Notifications
You must be signed in to change notification settings - Fork 3
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
Autocomplete erases text (using CoC) #10
Comments
This is either a bug in Godot's language server or CoC. This plugin
doesn't do completion anymore. Try using other versions of Godot/CoC or
a different LSP Client than CoC.
Maybe @rafaeldelboni has a solution? AFAIK he is also using CoC for
completion.
…On Thu, Apr 08, 2021 at 01:53:28AM -0700, Avahe Kellenberger wrote:
When I press enter to select an autocomplete option,
the text is added then immediately removed.
If I exit to normal mode and undo,
the text is placed back.
This is using the default config for `coc-nvim`,
following their setup instructions. This *does not* happen for any other language I've tried with CoC.
---
If any further info is required please let me know. This makes the plugin almost unusable for me
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#10
|
I remember having some different behavior from godot lsp and others lsp, probably is their server implementation, but since they will rewrite everything in version 4.0 maybe worth testing with diferent godot versions. But sorry I don't use godot that much anymore. |
Thanks for the feedback. If this plugin is not the cause we can close the issue, but I'll continue to document my findings here for anyone else who may need it |
Alright, got it working after some investigation. I added this to my inoremap <expr> <CR> complete_info().selected != -1 ?
\ (coc#expandable() ? "\<C-y>" : "\<C-y><Esc>a") : "\<C-y>" Source: godotengine/godot#34523 (comment) But this didn't seem to resolve it. I bisect disabled my vim plugins till I found the culprit to be tmsvg/pear-tree. EDIT: |
When I press enter to select an autocomplete option,
the text is added then immediately removed.
If I exit to normal mode and undo,
the text is placed back.
This is using the default config for
coc-nvim
,following their setup instructions. This does not happen for any other language I've tried with CoC.
If any further info is required please let me know. This makes the plugin almost unusable for me
The text was updated successfully, but these errors were encountered: