abingham / emacs-ycmd

Emacs client for ycmd, the code completion system.
MIT License
384 stars 46 forks source link

Add completer function #414

Closed ptrv closed 7 years ago

ptrv commented 7 years ago

Add new function ycmd-completer which sends a run_completer_command requests and dispatches the reponse to handlers according their types. There is no need to specify the handler manually anymore. ycmd-completer can also be called interactively which prompts the user to enter a subcommand from the list of available subcommands for completer. Also rename the handlers so that their name reflect the type of response they handle.