lsp-mode

Fangrui Song 2018-12-20 09:57:38 -08:00
parent 7de39ba9b1
commit 0b227cd7a0

@ -19,16 +19,13 @@ set `c-c++-backend` to `lsp-ccls` in the `+lang/c-c++` layer
#### use-package
```elisp
(use-package lsp-mode
:commands lsp
:config (require 'lsp-clients))
(use-package company-lsp
:commands company-lsp)
(use-package lsp-mode :commands lsp)
(use-package lsp-ui :commands lsp-ui-mode)
(use-package company-lsp :commands company-lsp)
(use-package ccls
:hook ((c-mode c++-mode objc-mode) .
(lambda () (cl-pushnew #'company-lsp company-backends) (require 'ccls) (lsp))))
(lambda () (require 'ccls) (lsp))))
```
The only required configuration is `ccls-executable`. Others have good defaults.