asyncomplete-buffer.vim icon indicating copy to clipboard operation
asyncomplete-buffer.vim copied to clipboard

Only searches when entered text contains word characters

Open jsit opened this issue 5 years ago • 1 comments

Because this plugin is only triggered on word characters (let l:kw = matchstr(l:typed, '\w\+$')), if a string is entered that contains hyphens, for instance, tags aren't searched.

Would it be possible to re-implement g:asyncomplete_default_refresh_pattern and use that?

Otherwise, I'm finding that this works much better:

let l:kw = matchstr(l:typed, '[[:alnum:]_-]\+$')

jsit avatar Jun 20 '19 16:06 jsit

Ok with having refresh pattern for different filetypes. Better if it is per source and filetype.

prabirshrestha avatar Jun 21 '19 01:06 prabirshrestha