Code Monkey home page Code Monkey logo

Comments (4)

demon386 avatar demon386 commented on July 20, 2024

untitled

Here's a screenshot for the smooth effect in Vim.

from emacs-ycmd.

Valloric avatar Valloric commented on July 20, 2024

in Vim, just after I type this line, immediately I can get completion when I type something like 'cap'.

That's because the YCM client looks at every char you type, notices when you finished an identifier and immediately sends the new identifier to ycmd so that it can be included in the database.

In addition, after I delete that line, it will be "cleaned" from the identifier completion candidates.

That's because you probably exited insert mode in Vim to delete the line. When you do that, YCM ships the entire buffer to ycmd for re-scanning of identifiers (which will remove identifiers that don't exist in the file anymore).

I don't know what kind of magic @Valloric did for Vim client, but it works very smoothly.

YCM has been around for years now so it has covered lots of corner cases. emacs-ycmd is still young, so you need to give it some time.

from emacs-ycmd.

demon386 avatar demon386 commented on July 20, 2024

Thanks for explaining.

YCM has been around for years now so it has covered lots of corner cases. emacs-ycmd is still young, so you need to give it some time

Yeah, I definitely agree. It's already making rapid progress. I just bring this up.

from emacs-ycmd.

abingham avatar abingham commented on July 20, 2024

There's definitely room to lots of improvement in the performance of the emacs client. Right now we just re-parse a file every two seconds, and that of course leads to lags. I'm going to convert this issue into separate ones that reflect @Valloric's specific techniques, but I'll reference this one for posterity.

from emacs-ycmd.

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.