hrsh7th/nvim-compe

If you enable the LSP snippet support without actually having a snippet plugin installed, compe will duplicate every completion entry in the menu.

charbelnicolas opened this issue · 2 comments

Checkhealth

Put result of :checkhealth compe.

health#compe#check
========================================================================
## compe:snippet
  - INFO: snippet engine is not detected.

## compe:mapping
  - INFO: `compe#complete` is not mapped
  - OK: `compe#confirm` is mapped: (`i  <CR>          compe#confirm("<CR>")`)
  - INFO: `compe#close` is not mapped
  - INFO: `compe#scroll` is not mapped

Describe the bug

If you enable the LSP snippet support without actually having a snippet plugin installed, compe will duplicate every completion entry in the menu.

To Reproduce

Set the following to true:

capabilities.textDocument.completion.completionItem.snippetSupport = true

and then disable or remove whatever plugin you have for snippets.

and make sure that there aren't any snippet plugins enabled in your compe source.

Actual behavior

Compe duplicates every entry in the completion menu.

Expected behavior

Only one suggestion should be shown instead of two of the same.

Screenshots (optional)

repeatbug

Additional context (optional)

I don't use a snippet engine so it was kind of weird at first, it took me a while to realize this was the issue.

I obviously fixed it by removing the 'capabilities' altogether from my init config file since I'm not using it.

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.