emacs-ycmd
emacs-ycmd copied to clipboard
How to incorporate semantic trigger/custom syntax completer?
I'm working on a LaTeX completer for ycmd and it works in vim. I'm slowly attempting to move to emacs and have comanpy/ycmd as part of that setup, but I can't seem to figue this bit out. I get as far as "No semantic completer exists for filetypes ['generic']" when calling ycmd-completer.
I guess at the minimum I somehow need emacs-ycmd to pass ['tex'] to ycmd? Then after that how might I go about getting \
and {
(and later on a list of regexps) to trigger completion? Is the second issue a emacs-ycmd one or a company
one?
It seems #259 might have to do with this, but I'm not in a position to figure out the code. Maybe someone could document that a bit more?
Thanks!
I've pushed up a new latext-support
branch that ought to do (or at least be close to!) what you need.
If ycmd also has "diagnostic" support for latex, you should also look at ycmd--file-types-with-diagnostics
. You might also want to update ycmd-keywords-alist
with latex keywords.
I'll help with this as much as I can, but a) I'm a bit overloaded and c) I only know enough latex to occasionally be dangerous. But I think what you're doing should be relatively straightforward. Thanks for contributing!
@LindyBalboa Did this help you at all?