We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neovim init.lua:
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' if not (vim.uv or vim.loop).fs_stat(lazypath) then local lazyrepo = 'https://github.com/folke/lazy.nvim.git' local out = vim.fn.system { 'git', 'clone', '--filter=blob:none', '--branch=stable', lazyrepo, lazypath } if vim.v.shell_error ~= 0 then error('Error cloning lazy.nvim:\n' .. out) end end vim.opt.rtp:prepend(lazypath) require('lazy').setup({ { 'hrsh7th/nvim-cmp', event = 'InsertEnter', dependencies = { 'hrsh7th/cmp-buffer', }, config = function() local cmp = require 'cmp' cmp.setup { mapping = cmp.mapping.preset.insert(), sources = { { name = 'buffer' }, }, performance = { throttle = 2000, }, } end }, })
The throttle = 2000 setting is not honored: the completion menu appears almost immediately while typing.
throttle = 2000
echo foobar >> test.txt
test.txt
foo
foobar
The completion menu only appears only after nothing is typed for 2000ms.
The completion menu appears almost immediately while typing.
This is not specific to cmp-buffer, but using cmp-buffer makes an easy reproducer because we don't need to configure any LSP or similar.
cmp-buffer
The text was updated successfully, but these errors were encountered:
I also tried with performance.debounce, but that doesn't seem to really help.
performance.debounce
Sorry, something went wrong.
setting debounce=1000 should work.
No branches or pull requests
FAQ
Announcement
Minimal reproducible full config
Neovim init.lua:
Description
The
throttle = 2000
setting is not honored: the completion menu appears almost immediately while typing.Steps to reproduce
echo foobar >> test.txt
test.txt
with nvim, add a new line and start typingfoo
foobar
completion appears almost immediately, and not after 2000ms.Expected behavior
The completion menu only appears only after nothing is typed for 2000ms.
Actual behavior
The completion menu appears almost immediately while typing.
Additional context
This is not specific to
cmp-buffer
, but usingcmp-buffer
makes an easy reproducer because we don't need to configure any LSP or similar.The text was updated successfully, but these errors were encountered: