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 #### use-package
```elisp ```elisp
(use-package lsp-mode (use-package lsp-mode :commands lsp)
:commands lsp (use-package lsp-ui :commands lsp-ui-mode)
:config (require 'lsp-clients)) (use-package company-lsp :commands company-lsp)
(use-package company-lsp
:commands company-lsp)
(use-package ccls (use-package ccls
:hook ((c-mode c++-mode objc-mode) . :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. The only required configuration is `ccls-executable`. Others have good defaults.