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

Problem with the items starting with non-alphabetical characters #20

Closed
machakann opened this issue Mar 23, 2019 · 1 comment
Closed

Comments

@machakann
Copy link

machakann commented Mar 23, 2019

Hi. First, thank you for your great works. I was helped a lot.

Recently, I found the first non-alphabetical character is duplicated if the item starts with.

asyncomplete-lsp

I found this problem with using a language server for julialang; it has a kind of important syntactic parts start with @ like @macroname. In this case, what I expect is @printf but what I got is @@printf I think the same problem potentially happens for $var of php.

I think it would be nice if a user can customize the pattern to determine startcol, but I'm not very sure.

let l:kw = matchstr(l:typed, '\w\+$')

@machakann machakann changed the title Some problem with the items starting with non-alphabetical characters Problem with the items starting with non-alphabetical characters Mar 23, 2019
@machakann
Copy link
Author

machakann commented Feb 5, 2020

This problem is solved by #29 and prabirshrestha/asyncomplete.vim#179.

Set an appropriate pattern to b:asyncomplete_refresh_pattern. For example:

augroup asyncomplete-lsp-julia
  autocmd!
  autocmd FileType julia let b:asyncomplete_refresh_pattern = '@\?\k\+$'
augroup END

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