zbirenbaum / copilot-cmp

Lua plugin to turn github copilot into a cmp source
MIT License
1.1k stars 39 forks source link

copilot source registered multiple times. #2

Closed dsully closed 2 years ago

dsully commented 2 years ago

Running :CmpStatus shows:

# ready source names
- dictionary
- nvim_lsp_document_symbol
- nvim_lsp_signature_help
- nvim_lua
- buffer
- path
- luasnip
- nvim_lsp:null-ls
- copilot
- copilot
- nvim_lsp:sumneko_lua
- copilot
- copilot

It appears any time an InsertEnter event occurs, the source is added. Perhaps using once would address the issue.

zbirenbaum commented 2 years ago

Thanks for the catch, this shouldn't be the case and I'm not sure why it is. I'll look into it.

zbirenbaum commented 2 years ago

This seems to be fixed for me after the latest patches, please reopen if the issue pops back up.

dsully commented 2 years ago

Looks better.. I am seeing this message now though:

method setEditorInfo is not supported by any of the servers registered for the current buffer

zbirenbaum commented 2 years ago

Looks better.. I am seeing this message now though:

method setEditorInfo is not supported by any of the servers registered for the current buffer

Update and try now

dsully commented 2 years ago

That fix worked.

dsully commented 2 years ago

I spoke too soon:

CleanShot 2022-04-06 at 18 25 48@2x

From :LspInfo