GithubHelp home page GithubHelp logo

Comments (6)

mattn avatar mattn commented on June 11, 2024 1

Could you please try

let b:asyncomplete_refresh_pattern = "\\(/\\|\\k\\+\\)$"

FYI, this should be done before completion.

from asyncomplete.vim.

brookhong avatar brookhong commented on June 11, 2024

+1

from asyncomplete.vim.

typecampo avatar typecampo commented on June 11, 2024

Similar issue here. Completion works for most things but not in specific cases. For example. Im calling an a function using await and there is no autocompletion on the resulting object. If I remove await, completion works.

["asyncomplete#complete","asyncomplete_lsp_typescript-language-server",{"lnum":13,"bufnr":1,"col":6,"changedtick":36,"typed":"\tsub.","filetype":"typescript","curpos":[0,13,6,0,13],"filepath":"/home/vader/Projects/app-ibs/src/services/stream.ts"},5,false,[{"word":"callback","abbr":"callback~","user_data":"{\"vim-lsp/key\":\"62\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"closed","abbr":"closed","user_data":"{\"vim-lsp/key\":\"63\"}","kind":"field","empty":1,"dup":1,"icase":1},{"word":"consumerInfo","abbr":"consumerInfo~","user_data":"{\"vim-lsp/key\":\"64\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"destroy","abbr":"destroy~","user_data":"{\"vim-lsp/key\":\"65\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"drain","abbr":"drain~","user_data":"{\"vim-lsp/key\":\"66\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"getID","abbr":"getID~","user_data":"{\"vim-lsp/key\":\"67\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"getMax","abbr":"getMax~","user_data":"{\"vim-lsp/key\":\"68\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"getPending","abbr":"getPending~","user_data":"{\"vim-lsp/key\":\"69\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"getProcessed","abbr":"getProcessed~","user_data":"{\"vim-lsp/key\":\"70\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"getReceived","abbr":"getReceived~","user_data":"{\"vim-lsp/key\":\"71\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"getSubject","abbr":"getSubject~","user_data":"{\"vim-lsp/key\":\"72\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"isClosed","abbr":"isClosed~","user_data":"{\"vim-lsp/key\":\"73\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"isDraining","abbr":"isDraining~","user_data":"{\"vim-lsp/key\":\"74\"}","kind":"method","empty":1,"dup":1,"icase":1},{"word":"[Symbol]","abbr":"Symbol","user_data":"{\"vim-lsp/key\":\"75\"}","kind":"variable","empty":1,"dup":1,"icase":1},{"word":"unsubscribe","abbr":"unsubscribe~","user_data":"{\"vim-lsp/key\":\"76\"}","kind":"method","empty":1,"dup":1,"icase":1}]]
["core","s:update_pum"]
["core","s:recompute_pum"]
["core","asyncomplete#preprocess_complete"]
["core","asyncomplete#preprocess_complete calling complete()",0,[]]

Seems also like #138

from asyncomplete.vim.

typecampo avatar typecampo commented on June 11, 2024

Found on the ones that work, base is 'empty base', the ones that dont work base is '.' Then disabling fuzzymatch, this line fails resulting in empty array.

if stridx(l:item['word'], l:base) == 0

from asyncomplete.vim.

stale avatar stale commented on June 11, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from asyncomplete.vim.

Urfoex avatar Urfoex commented on June 11, 2024

Could you please try

let b:asyncomplete_refresh_pattern = "\\(/\\|\\k\\+\\)$"

FYI, this should be done before completion.

Just faced the same issue. Had to put a space after the . to get the completion.
Putting your let in, it directly completes after the .
Thank you!

from asyncomplete.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.