Cannot use auto-completion function in coc.nvim

786 views Asked by At

Whenever I enter a certain auto-completion suggestions from coc.nvim, it just flashes the suggestion and removes it entirely and it throws an error 'coc.nvim: command not found'. The suggestion tab shows normally and acts normally.

This bug always happens in a gdscript file, all other files work as intended.

I can't find a fix for this, maybe its the language server or the coc configuration file.

1

There are 1 answers

1
Elias On

Try adding this to your init.vim file.

inoremap complete_info().selected != -1 ? \ &filetype == "gdscript3" ? (coc#expandable() ? "<C-y>" : "<C-y>a") : "<C-y>" \ : "<C-g>u<CR>"