hrsh7th / nvim-cmp

A completion plugin for neovim coded in Lua.
MIT License
7.45k stars 370 forks source link

Always slower than coc #1844

Closed xzbdmw closed 4 months ago

xzbdmw commented 4 months ago

FAQ

Announcement

Minimal reproducible full config

  1. enable coc and cmp
  2. set
            performance = {
                debounce = 0,
                throttle = 0,
                fetching_timeout = 500,
                confirm_resolve_timeout = 80,
                async_budget = 1,
                max_view_entries = 200,
            },

Description

start typing, you will see coc's floating windows always show up first as in screenshot, and the response time is unpredictable each time, sometimes faster, somtimes slower as a repeat "del"v"del"v key sequence.

https://github.com/hrsh7th/nvim-cmp/assets/97848247/a3b5bf5c-d120-4e2a-bc86-9373e42b54b0

another example using volar

https://github.com/hrsh7th/nvim-cmp/assets/97848247/6be468f9-db02-4fb2-80a3-7497038e1893

Steps to reproduce

use coc default config and cmp max performance config

Expected behavior

they should be the same

Actual behavior

cmp always slower

Additional context

No response