问题如下:
所有emacs的配置如下,为了测试,没有其他的配置:
(require 'company)
(global-company-mode t)
(require 'ccls)
(setq ccls-executable "/usr/bin/ccls")
(defun ccls//enable ()
(condition-case nil
(lsp-ccls-enable)
(user-error nil)))
(add-hook 'c-mode-common-hook #'ccls//enable)
(setq ccls-extra-init-params
'(:completion (:detailedLabel t)
:diagnostics (:frequencyMs 5000)))
(require 'company-lsp)
(setq company-transformers nil company-lsp-async t company-lsp-cache-candidates nil)
(push 'company-lsp company-backends)