maralla / completor.vim

Async completion framework made ease.
MIT License
1.31k stars 62 forks source link

Words get deleted if auto trigger is on #144

Open madnight opened 6 years ago

madnight commented 6 years ago

I start to write a word in insert mode, then after 3 chars it starts to popup the completion (exactly what i want), but now i decide that i don't want to select any of the suggested completions, hence i simply type the next (4th) char of my word, but now the entire word gets deleted.

maralla commented 6 years ago

What is the commit id of completor you have installed? What is the result of :echo &completeopt?

madnight commented 6 years ago

commit id: 569c34e8aa343616b0a8f01b11bf49d0314bd363 :echo &completeopt: preview,menuone

maralla commented 6 years ago

My environment can not produce this problem. So can you please disable all other plugins and only enable completor.vim and comment out all configurations to construct a minimal environment to check if the problem still exists?

madnight commented 6 years ago

I switched to YouCompleteMe in the mean time, which works fine, so im not sure if there is a problem with completor or my system, but yes i disabled all other plugins and only used completor (basically vim -u NONE + vim plug (plugin manager) + completor (only plugin) + auto trigger on), im running a up to date arch linux

hanqing0521 commented 6 years ago

There is the same problem with my vim.

Plugin Vundle
Plugin 'tpope/vim-fugitive'
  " plugin from http://vim-scripts.org/vim/scripts.html
  Plugin 'L9'
  " Git plugin not hosted on GitHub
  Plugin 'git://git.wincent.com/command-t.git'
  " git repos on your local machine (i.e. when working on your own plugin)
  "Plugin 'file:///home/gmarik/path/to/plugin'
  " The sparkup vim script is in a subdirectory of this repo called vim.
  " Pass the path to set the runtimepath properly.
  Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
  " Avoid a name conflict with L9
  "Plugin 'user/L9', {'name': 'newL9'}
  "---------------------------------------------------
  "Plugin 'https://github.com/davidhalter/jedi-vim'
  "Plugin 'https://github.com/zchee/deoplete-jedi'
  "Plugin 'https://github.com/roxma/vim-hug-neovim-rpc'
  "Plugin 'https://github.com/Shougo/deoplete.nvim'
  "Plugin 'https://github.com/roxma/nvim-yarp'
  Plugin 'https://github.com/maralla/completor.vim'
  Plugin 'https://github.com/terryma/vim-multiple-cursors'
  Plugin 'https://github.com/jiangmiao/auto-pairs'
  Plugin 'https://github.com/Shougo/neoinclude.vim'
  Plugin 'https://github.com/scrooloose/nerdtree.git'
  Plugin 'https://github.com/tpope/vim-surround'
  Plugin 'https://github.com/godlygeek/tabular'
  Plugin 'https://github.com/scrooloose/syntastic'
  "Plugin 'https://github.com/bling/vim-airline'
  Plugin 'https://github.com/vim-airline/vim-airline'
  Plugin 'https://github.com/vim-airline/vim-airline-themes'
  Plugin 'https://github.com/vim-scripts/AutoComplPop'
  Plugin  'https://github.com/mbbill/undotree'
  "Plugin 'https://github.com/vim-scripts/fcitx.vim'
  Plugin 'https://github.com/vim-scripts/SyntaxComplete'
  Plugin 'https://github.com/kien/ctrlp.vim'
  Plugin 'https://github.com/dyng/ctrlsf.vim'
  Plugin 'https://github.com/yonchu/accelerated-smooth-scroll'
  Plugin 'https://github.com/Shougo/neco-syntax'
  Plugin 'https://github.com/Yggdroot/indentLine'
  Plugin 'https://github.com/vim-scripts/Conque-GDB'
  Plugin 'https://github.com/lervag/vimtex'
  Plugin 'https://github.com/luochen1990/rainbow'
  Plugin 'https://github.com/morhetz/gruvbox'
  Plugin 'https://github.com/SirVer/ultisnips'
  Plugin 'https://github.com/honza/vim-snippets'
hanqing0521 commented 6 years ago

after set

let g:completor_refresh_always = 0

seems better

ghost commented 6 years ago

I can't produce the issue either, completeopt is set to menuone,noselect

hanqing0521 commented 6 years ago

nothing about menuone, noselect of the completeopt. I fix it just `let g:completor_refresh_always = 0' I do not know way, waiting the author give us some answer.

hanqing0521 commented 6 years ago

after removing an old plugin AutoComplPop, this bug disappear. Are there some people use this old plugin?