Skip to content

Vim is frozen when completing with ** pattern #14

@phongnh

Description

@phongnh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions