popup is slow to appear #413

Closed
nhooyr opened this Issue Jan 7, 2017 · 6 comments

Projects

None yet

2 participants

@nhooyr
Contributor
nhooyr commented Jan 7, 2017

Warning: I will close the issue without the minimal init.vim and the reproduce ways.

Problems summary

The popup is slow to appear compared to other plugins.

Expected

The popup should be very fast.

Environment Information


health#deoplete#check
========================================================================
## deoplete.nvim
  - SUCCESS: has("nvim") was successful
  - SUCCESS: has("python3") was successful
  - INFO: If you're still having problems, try the following commands:
    $ export NVIM_PYTHON_LOG_FILE=/tmp/log
    $ export NVIM_PYTHON_LOG_LEVEL=DEBUG
    $ nvim
    $ cat /tmp/log_{PID}
    and then create an issue on github

health#nvim#check
========================================================================
## Configuration
  - SUCCESS: no issues found

## Performance
  - SUCCESS: Build type: Release

## Remote Plugins
  - SUCCESS: Up to date

## terminal
  - INFO: key_backspace (kbs) terminfo entry: key_backspace=^H
  - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~

health#provider#check
========================================================================
## Clipboard
  - SUCCESS: Clipboard tool found: pbcopy

## Python 2 provider
  - INFO: Using: g:python_host_prog = "/nix/store/isymv2v679xnpribv044nl8g5xpcbn5k-neovim-0.1.8-dev/bin/nvim-python"
  - INFO: Executable: /nix/store/isymv2v679xnpribv044nl8g5xpcbn5k-neovim-0.1.8-dev/bin/nvim-python
  - INFO: Python2 version: 2.7.13
  - INFO: nvim-python-neovim version: 0.1.12
  - SUCCESS: Latest nvim-python-neovim is installed: 0.1.12

## Python 3 provider
  - INFO: Using: g:python3_host_prog = "/nix/store/isymv2v679xnpribv044nl8g5xpcbn5k-neovim-0.1.8-dev/bin/nvim-python3"
  - INFO: Executable: /nix/store/isymv2v679xnpribv044nl8g5xpcbn5k-neovim-0.1.8-dev/bin/nvim-python3
  - INFO: Python3 version: 3.5.2
  - INFO: nvim-python3-neovim version: 0.1.12
  - SUCCESS: Latest nvim-python3-neovim is installed: 0.1.12

## Ruby provider
  - SUCCESS: Found up-to-date neovim RubyGem
  - INFO: Ruby Version: ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
  - INFO: Host Executable: /nix/store/wrg0d0kmi0qa0m8wqg48qph773iqam6l-neovim-ruby-env/bin/neovim-ruby-host
  - INFO: Host Version: 0.3.1

Provide a minimal init.vim with less than 50 lines (Required!)

" Your minimal init.vim
set runtimepath+=~/path/to/deoplete.nvim/
let g:deoplete#enable_at_startup = 1

Watch for a comparison between deoplete and mucomplete: https://asciinema.org/a/9gl1mctgceo6vojw28nxq8qf8

First I use deoplete and the pop up does not appear until I stop briefly, whereas with mucomplete, it is instant.

@nhooyr
Contributor
nhooyr commented Jan 7, 2017 edited

Though, the one problem with mucomplete being so fast is that sometimes, even though the popup has appeared but still flickering and thus not there briefly, I cannot always press <C-N> to cycle through. that seems to be a bug actually, lifepillar/vim-mucomplete#50

@Shougo
Owner
Shougo commented Jan 8, 2017

:help g:deoplete#auto_complete_delay

@Shougo Shougo closed this Jan 8, 2017
@nhooyr
Contributor
nhooyr commented Jan 8, 2017 edited

that feels so much better, thank you!

@nhooyr
Contributor
nhooyr commented Jan 8, 2017

@Shougo why is it set to such a high value by default?

@Shougo
Owner
Shougo commented Jan 8, 2017
@nhooyr
Contributor
nhooyr commented Jan 8, 2017

@Shougo you should add it to the FAQ, I'm sure there are also people who want no delay.

@Shougo Shougo added a commit that referenced this issue Jan 8, 2017
@Shougo Fix #413 update FAQ b75e830
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment