Start editing a new Python file with command: nvim test_coc.py -u mini.vim
Write some Python code. Then, put the cursor at the beginning of a variable, go into insert mode, start typing something, and accept an autocomplete suggestion with Ctrl+Y. The variable immediately following the cursor has disppeared. See below for screenshots.
Expected behavior
The word following the cursor should not disappear when I accept an autocomplete suggestion. Or, if this was intended behavior, then it would be great if there was a way to disable this behavior. (I tried to find how to disable it but was unsuccessful.)
Screenshots
For example, suppose I have a function and am calling the function, but I later realized I want to pass an additional keyword argument, like so:
Upon confirming the selected autocomplete suggestion, more_args disappeared:
Result from CocInfo
Describe the bug
For some language servers, confirming a completion deletes the next word if there's no space between the cursor and the next word.
Reproduce the bug
I will use
jedi-language-server
as an example, but I've experienced the issue with e.g.coc-json
as well.mini.vim
with:jedi-language-server
either through:CocInstall coc-jedi
or by putting the following incoc-settings.json
:nvim test_coc.py -u mini.vim
Expected behavior
The word following the cursor should not disappear when I accept an autocomplete suggestion. Or, if this was intended behavior, then it would be great if there was a way to disable this behavior. (I tried to find how to disable it but was unsuccessful.)
Screenshots
For example, suppose I have a function and am calling the function, but I later realized I want to pass an additional keyword argument, like so:
Upon confirming the selected autocomplete suggestion,
more_args
disappeared: