cquery-project / emacs-cquery

Emacs client for cquery, a low-latency language server supporting multi-million line C++ code-bases
116 stars 14 forks source link

company inserts "raw" candidation into buffer. #1

Closed madper closed 6 years ago

madper commented 6 years ago

Hey Ray,

With cquery, I got oom_kill_process(${1:struct oom_control *oc}, ${2:const char *message})$0 in my capf list.

http://paste.ubuntu.com.cn/i4293366 It seems the raw format should be sent to Yas. Somehow it directly showed to end user.

I'm still debugging my configuration.

BR, M

MaskRay commented 6 years ago

Hi No Money,

${} designates LSP snippet. You may try company-lsp

(setq company-lsp-async t
          company-lsp-cache-candidates nil)

BR, R

madper commented 6 years ago

company-lsp works. thanks a lot! Let me close the issue ticket.