1

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.

niceloaf
  • 11
  • 1

1 Answers1

0

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>"

Elias
  • 1
  • Thanks for your addition to the list of answers. A terse explanation of what each of these macros does might be helpful to new users. – untergeek Mar 14 '21 at 19:43