Enable ccls for c-mode
This commit is contained in:
parent
348b36dafd
commit
e411693eb0
1 changed files with 7 additions and 2 deletions
|
|
@ -876,10 +876,15 @@ https://github.com/emacs-lsp/lsp-ui
|
|||
https://github.com/tigersoldier/company-lsp
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(defun +ccls/enable ()
|
||||
(condition-case nil
|
||||
(lsp-ccls-enable)
|
||||
(user-error nil)))
|
||||
|
||||
(use-package ccls
|
||||
:ensure t
|
||||
:commands lsp-ccls-enable
|
||||
:init
|
||||
(setq ccls-executable "/usr/bin/ccls")
|
||||
(add-hook 'c-mode-hook #'+ccls/enable)
|
||||
)
|
||||
|
||||
(use-package lsp-ui
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue