Skip to content
New issue

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

Vim is frozen when completing with ** pattern #14

Open
phongnh opened this issue Jun 5, 2021 · 0 comments
Open

Vim is frozen when completing with ** pattern #14

phongnh opened this issue Jun 5, 2021 · 0 comments

Comments

@phongnh
Copy link

phongnh commented Jun 5, 2021

Hi @prabirshrestha,

When I am typing a text like coverage/**/, it triggered file completion but vim is frozen immediately. Maybe it is trying to glob with ** pattern.

Here is minimal vimrc I used to reproduce the issue

set encoding=utf-8
scriptencoding utf-8

set nocompatible
set termguicolors

if &shell =~# 'fish$'
    if executable('zsh')
        let &shell = exepath('zsh')
    elseif executable('bash')
        let &shell = exepath('bash')
    endif
endif

set runtimepath^=~/.vim/plugged/asyncomplete.vim
set runtimepath^=~/.vim/plugged/asyncomplete-file.vim
syntax on
filetype plugin indent on

let g:asyncomplete_auto_popup  = 1
let g:asyncomplete_popup_delay = 100

call asyncomplete#register_source(asyncomplete#sources#file#get_source_options({
            \ 'name':      'file',
            \ 'allowlist': ['*'],
            \ 'priority':  10,
            \ 'completor': function('asyncomplete#sources#file#completor'),
            \ }))

Thanks for awesome complete plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant