Completion triggered on empty line
Closed this issue · 1 comments
ranebrown commented
The completion menu is shown on an empty line after pressing enter. For a blank line it seems like it should only come up after typing a character.
Open a file and type "One two three" then press enter. Completion is shown on the empty line. Hitting enter again moves to a new line but the completion menu remains open. Maybe related to the column number?
Minimal vimrc
set packpath=
set runtimepath+=~/.local/share/nvim/site/pack/packer/start/asyncomplete.vim
set runtimepath+=~/.local/share/nvim/site/pack/packer/start/asyncomplete-buffer.vim
inoremap <expr> <C-n> pumvisible() ? "\<C-n>" : asyncomplete#force_refresh()
inoremap <expr> <C-p> pumvisible() ? "\<C-p>" : asyncomplete#force_refresh()
imap <expr> <CR> pumvisible() ? "\<C-y>" . "\<CR>" : "\<CR>"
augroup CompletionGroup
autocmd!
autocmd User asyncomplete_setup call asyncomplete#register_source(asyncomplete#sources#buffer#get_source_options({
\ 'name': 'buffer',
\ 'priority': 10,
\ 'allowlist': ['*'],
\ 'triggers': { '*': [''] },
\ 'completor': function('asyncomplete#sources#buffer#completor'),
\ }))
augroup END
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.