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

Only searches when entered text contains word characters #11

Open
jsit opened this issue Jun 20, 2019 · 1 comment
Open

Only searches when entered text contains word characters #11

jsit opened this issue Jun 20, 2019 · 1 comment

Comments

@jsit
Copy link
Contributor

jsit commented Jun 20, 2019

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:]_-]\+$')

@prabirshrestha
Copy link
Owner

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

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

2 participants